From d59a8b8fc6cb43d6b18d68e81a5a738479726119 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tristan=20Dani=C3=ABl=20Maat?= Date: Mon, 13 Jul 2020 21:42:43 +0100 Subject: [PATCH] Add client_max_body_size configuration to nginx-proxy Technically I could use a per-host configuration here and forego the whole nextcloud nginx container, but for the time being it's simpler to set the global upload limit to 16G as well. --- etc/nixos/services/configs/nginx-proxy.conf | 1 + etc/nixos/services/nginx.nix | 1 + 2 files changed, 2 insertions(+) create mode 100644 etc/nixos/services/configs/nginx-proxy.conf diff --git a/etc/nixos/services/configs/nginx-proxy.conf b/etc/nixos/services/configs/nginx-proxy.conf new file mode 100644 index 0000000..975735b --- /dev/null +++ b/etc/nixos/services/configs/nginx-proxy.conf @@ -0,0 +1 @@ +client_max_body_size 16G; diff --git a/etc/nixos/services/nginx.nix b/etc/nixos/services/nginx.nix index f637a87..f2daac0 100644 --- a/etc/nixos/services/nginx.nix +++ b/etc/nixos/services/nginx.nix @@ -9,6 +9,7 @@ "443:443" ]; volumes = [ + "${./configs/nginx-proxy.conf}:/etc/nginx/conf.d/general.conf:ro" # So that we can watch new containers come up "/var/run/docker.sock:/tmp/docker.sock:ro" # So that we can access generated certs