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:
parent
02de2087c5
commit
28d33adce7
2 changed files with 8 additions and 0 deletions
7
demostf-nginx.conf
Normal file
7
demostf-nginx.conf
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
client_max_body_size 150m;
|
||||||
|
|
||||||
|
location = /upload {
|
||||||
|
limit_except GET HEAD {
|
||||||
|
proxy_pass http://upload.demos.tf;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -20,6 +20,7 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- "/var/run/docker.sock:/tmp/docker.sock:ro"
|
- "/var/run/docker.sock:/tmp/docker.sock:ro"
|
||||||
- "./nginx.tmpl:/etc/docker-gen/templates/nginx.tmpl:ro"
|
- "./nginx.tmpl:/etc/docker-gen/templates/nginx.tmpl:ro"
|
||||||
|
- "./demostf-nginx.conf:/etc/nginx/vhost.d/${HOST}"
|
||||||
volumes_from:
|
volumes_from:
|
||||||
- nginx
|
- 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
|
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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue