Edit foundry-vtt download url in Dockerfile
$ sudo docker -v build -t foundry-vtt .
$ sudo docker run -d --name=<name> -p <host-port>:30000 -v <fvtt data dir>:/home/foundry/data foundry-with-plutonium
$ sudo certbot certonly --webroot -d vouch.foundry.eltariel.com --email [email protected] -w /var/www/_letsencrypt -n --agree-tos --force-renewal
References: nginx vouch setup, using oidc with discord
$ sudo cp vouch-config.yml /etc/nginx/vouch/config.yml
$ sudo docker run -d --name vouch -v /etc/nginx/vouch:/config -p 9090:9090 voucher/vouch-proxy:alpine
GET /join
-> form with dropdown of available users
Fill in details & submit:
POST /join multipart/form-data
"userid": "mlDlYBmmRo7vPZsJ"
"password": ""
-> JSON
{
"response": "success" or "error",
"error": "something?",
"redirect": "/game"
}
GET /game
landing page:
GET /
-> Requires oauth2
-> lists games available to you with allowed characters
Click a character name:
-> if game server not running, launch it
-> start at POST above