Hosting setup for demos.tf
Find a file
2024-03-21 12:23:57 +01:00
.gitignore add promtail 2022-02-05 20:11:59 +01:00
docker-compose.yml remove proxy ssl 2024-03-21 12:23:57 +01:00
nginxlog.yaml nginx metrics 2024-01-14 02:18:33 +01:00
promtail.yml nginx metrics 2024-01-14 02:18:33 +01:00
README.md add maps 2023-11-24 19:04:40 +01:00

Setup

Hosting setup for demos.tf

Usage

Create a .env file with the following values:

  • HOST: the base domain the site will be hosted from
  • PORT: the port the webserver will listen to
  • DB_PASSWORD: the password that will be used for the database
  • DEMO_ROOT: the folder the demos will be stored in
  • EDIT_SECRET: private api key for migrating demos to new url

Start the containers:

docker-compose up -d

Domain names

The setup uses four domains derived from the base domain.

  • ${HOST}: the main site
  • api.${HOST}: the backend api and upload code
  • static.${HOST}: server uploaded demos
  • sync.${HOST}: playback sync server
  • maps.${HOST}: static map data

All four domains should point towards the server on which this setup is running