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:
parent
8e0dcc9f10
commit
00271e5c6a
2 changed files with 7 additions and 0 deletions
|
|
@ -10,6 +10,8 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- "certs:/etc/nginx/certs:ro"
|
- "certs:/etc/nginx/certs:ro"
|
||||||
- "./api.tmpl:/etc/nginx/conf.d/api.tmpl"
|
- "./api.tmpl:/etc/nginx/conf.d/api.tmpl"
|
||||||
|
- "./static.tmpl:/etc/nginx/conf.d/static.tmpl"
|
||||||
|
- "${DEMO_ROOT}:/demos"
|
||||||
environment:
|
environment:
|
||||||
- HOST=${HOST}
|
- HOST=${HOST}
|
||||||
- UPLOAD_FASTCGI=api:9000
|
- UPLOAD_FASTCGI=api:9000
|
||||||
|
|
|
||||||
5
static.tmpl
Normal file
5
static.tmpl
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
server_name static.${HOST};
|
||||||
|
root /demos;
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue