1
0
Fork 0
mirror of https://github.com/demostf/setup synced 2026-06-04 00:54:07 +02:00

add static demo hosting

This commit is contained in:
Robin Appelman 2017-04-11 22:47:52 +02:00
commit 00271e5c6a
2 changed files with 7 additions and 0 deletions

View file

@ -10,6 +10,8 @@ services:
volumes:
- "certs:/etc/nginx/certs:ro"
- "./api.tmpl:/etc/nginx/conf.d/api.tmpl"
- "./static.tmpl:/etc/nginx/conf.d/static.tmpl"
- "${DEMO_ROOT}:/demos"
environment:
- HOST=${HOST}
- UPLOAD_FASTCGI=api:9000

5
static.tmpl Normal file
View file

@ -0,0 +1,5 @@
server {
listen 80;
server_name static.${HOST};
root /demos;
}