make nginx upload size configurable #12

Open
stevensting wants to merge 2 commits from upload-size into master
2 changed files with 3 additions and 0 deletions

View File

@ -67,6 +67,7 @@ services:
- STACK_NAME
- ROOT_PATH=/var/www/html/public
- DOMAIN
- MAX_BODY_SIZE=${MAX_BODY_SIZE:-256M}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost"]
interval: 30s

View File

@ -4,6 +4,8 @@ server {
listen [::]:80;
server_name localhost;
client_max_body_size {{ env "MAX_BODY_SIZE" }};
root {{ env "ROOT_PATH" }};
#charset koi8-r;