2017-03-17 23:54:57 +01:00
|
|
|
# Setup
|
|
|
|
|
|
|
|
|
|
Hosting setup for demos.tf
|
|
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
|
|
Create a `.env` file with the following values:
|
|
|
|
|
|
2017-04-13 00:34:48 +02:00
|
|
|
- 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
|
2018-03-06 00:48:59 +01:00
|
|
|
- EDIT_SECRET: private api key for migrating demos to new url
|
2017-03-17 23:54:57 +01:00
|
|
|
|
|
|
|
|
Start the containers:
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
docker-compose up -d
|
|
|
|
|
```
|
2017-04-13 00:34:48 +02:00
|
|
|
|
|
|
|
|
## Domain names
|
|
|
|
|
|
2020-02-09 23:27:01 +01:00
|
|
|
The setup uses four domains derived from the base domain.
|
2017-04-13 00:34:48 +02:00
|
|
|
|
|
|
|
|
- ${HOST}: the main site
|
|
|
|
|
- api.${HOST}: the backend api and upload code
|
|
|
|
|
- static.${HOST}: server uploaded demos
|
2023-11-24 19:03:09 +01:00
|
|
|
- sync.${HOST}: playback sync server
|
|
|
|
|
- maps.${HOST}: static map data
|
2020-02-09 23:27:01 +01:00
|
|
|
|
|
|
|
|
All four domains should point towards the server on which this setup is running
|