From 6ba87a06c42f498d6d80a9961f6a42d7f66e8ff4 Mon Sep 17 00:00:00 2001 From: Patrick Jentsch Date: Wed, 5 Feb 2020 17:20:06 +0100 Subject: [PATCH] set file upload size the proper way --- docker-compose.yml | 1 + nginx-proxy/conf.d/nopaque_specifics.conf | 1 + nginx-proxy/vhost.d/nopaque.localhost | 2 -- 3 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 nginx-proxy/conf.d/nopaque_specifics.conf diff --git a/docker-compose.yml b/docker-compose.yml index 89b2db80..dd1471af 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,6 +14,7 @@ services: image: jwilder/nginx-proxy:latest volumes: - /var/run/docker.sock:/tmp/docker.sock:ro + - ./nginx-proxy/conf.d/nopaque_specifics.conf:/etc/nginx/conf.d/nopaque_specifics.conf:ro - ./nginx-proxy/vhost.d:/etc/nginx/vhost.d:ro # - ./certs:/etc/nginx/certs web: diff --git a/nginx-proxy/conf.d/nopaque_specifics.conf b/nginx-proxy/conf.d/nopaque_specifics.conf new file mode 100644 index 00000000..478dfaa9 --- /dev/null +++ b/nginx-proxy/conf.d/nopaque_specifics.conf @@ -0,0 +1 @@ +client_max_body_size 1024M; diff --git a/nginx-proxy/vhost.d/nopaque.localhost b/nginx-proxy/vhost.d/nopaque.localhost index 4350bfc9..42c7fc96 100644 --- a/nginx-proxy/vhost.d/nopaque.localhost +++ b/nginx-proxy/vhost.d/nopaque.localhost @@ -1,5 +1,3 @@ -client_max_body_size 1024M; - location /socket.io { proxy_http_version 1.1; proxy_buffering off;