Skip to content
/ Sveio Public

A multiplayer geography game inspired by Posio

License

Notifications You must be signed in to change notification settings

Erb3/Sveio

Repository files navigation

Sveio

A geography game inspired by Posio, written in 🔥🚀Rust. View the public instance at sveio.shuttleapp.rs!

Deployment

Important

Sveio does not impose any rate limit itself. You have to do this yourself, with something like nginx.

Docker

Sveio is available as a docker image. If you use docker run you can run the following to start it:

docker run -d -p 8085:8085 ghcr.io/erb3/sveio:latest

Alternatively, you can use the following docker compose:

services:
  sveio:
    container_name: sveio
    image: ghcr.io/erb3/sveio:latest
    ports:
      - 8085:8085
    restart: unless-stopped

Shuttle

Shuttle.rs is supported for the demo server. To enable shuttle support use the shuttle feature.

Deploy with Shuttle:

cargo shuttle deploy

Configuration

The server uses the following environmental variables, and can also be passed as cli args.

  • SVEIO_PORT: The port to serve on. Defaults to 8085.

For more information please run sveio -h.

Socket.io

Sveio uses Socketioxide

Here are some resources to get you started with Socketioxide:

Credits