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

add demos.tf specfic nginx config

This commit is contained in:
Robin Appelman 2017-03-18 15:55:30 +01:00
commit 28d33adce7
2 changed files with 8 additions and 0 deletions

7
demostf-nginx.conf Normal file
View file

@ -0,0 +1,7 @@
client_max_body_size 150m;
location = /upload {
limit_except GET HEAD {
proxy_pass http://upload.demos.tf;
}
}

View file

@ -20,6 +20,7 @@ services:
volumes:
- "/var/run/docker.sock:/tmp/docker.sock:ro"
- "./nginx.tmpl:/etc/docker-gen/templates/nginx.tmpl:ro"
- "./demostf-nginx.conf:/etc/nginx/vhost.d/${HOST}"
volumes_from:
- nginx
entrypoint: /usr/local/bin/docker-gen -notify-sighup nginx -watch -wait 5s:30s /etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf