Install a server
What you need: a Linux server with Docker and Docker Compose (v2), and a reverse
proxy with HTTPS for a domain (for example Caddy, nginx or Traefik). Without a
domain the game also runs on http://localhost:8080 for a try.
1. Get the files
Section titled “1. Get the files”git clone https://github.com/Heiss/nova-imperium.gitcd nova-imperium2. Settings
Section titled “2. Settings”docker/init-env.shThis creates .env from .env.example and the empty secret file
secrets/smtp_password (readable for uid 1000, the user of the game). Open
.env and set at least:
NOVA_PUBLIC_URL=https://nova.example.orgMail for invitations (optional, otherwise you copy the links yourself):
SMTP_HOST=smtp.example.orgSMTP_PORT=465SMTP_TLS=trueSMTP_USERNAME=nova@example.orgMAIL_FROM=nova@example.organd write the SMTP password into the secret file, never into .env:
printf '%s' 'the-password' > secrets/smtp_passwordAll variables: configuration.md.
3. Start
Section titled “3. Start”docker compose up -ddocker compose ps shows app and web as healthy after a few seconds.
The game listens on 127.0.0.1:8080; point your reverse proxy there (examples
in operations.md).
The game data is a SQLite database in the Docker volume nova-imperium_data.
It survives restarts, updates and reboots of the server.
4. The first player and admin
Section titled “4. The first player and admin”Nobody can register without an invitation, and nobody becomes admin through the web. As the operator:
docker compose exec app nova invite you@example.orgThe command prints the invitation link (and mails it if SMTP is set). Open the link, choose a name and password. Then make yourself admin:
docker compose exec app nova admin YourNameReload the page: the menu shows Admin. There you invite your friends by e-mail, revoke open invitations, change the speed and size of the universe, ring in the „Endzeit“ once per round (a gift fleet for every player for a final battle) and start a new round.
Try it locally (demo)
Section titled “Try it locally (demo)”docker/init-env.sh --demodocker compose up -d --builddocker compose exec app nova invite me@example.orgOpen http://localhost:8080 with the printed link. Invitation mails land in Mailpit at http://localhost:8025; nothing leaves the machine.