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
2020-02-03 16:11:06 +01:00
.gitignore add api and DB 2017-03-19 17:42:29 +01:00
api.tmpl bump size limit to 200mb 2019-04-09 22:14:04 +02:00
docker-compose.yml use new sync 2020-02-03 16:11:06 +01:00
README.md Update README.md 2018-03-06 00:48:59 +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 three domains derived from the base domain.

  • ${HOST}: the main site
  • api.${HOST}: the backend api and upload code
  • static.${HOST}: server uploaded demos