1
0
Fork 0
mirror of https://github.com/demostf/setup synced 2026-06-03 16:44:06 +02:00
Hosting setup for demos.tf
Find a file
2022-01-23 17:12:37 +01:00
.gitignore realip 2022-01-23 17:12:37 +01:00
api.tmpl realip 2022-01-23 17:12:37 +01:00
docker-compose.yml remove depricated env 2022-01-23 17:11:20 +01:00
README.md document sync domain 2020-02-09 23:27:01 +01:00
static.tmpl add cors for static demo hosting 2017-04-13 14:19:57 +02:00
sync.tmpl add sync 2017-04-13 19:11:55 +02: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.${HPST}: playback sync server

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