From cd24fab014aab0be5cf92bceb33fe4e7b2225adc Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Sat, 14 May 2022 11:22:24 +0200 Subject: [PATCH] updated nginx state --- states/nginx/templates/proxy_params.j2 | 2 +- states/nginx/templates/types/nextcloud.j2 | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/states/nginx/templates/proxy_params.j2 b/states/nginx/templates/proxy_params.j2 index 84e6fed..f802624 100644 --- a/states/nginx/templates/proxy_params.j2 +++ b/states/nginx/templates/proxy_params.j2 @@ -4,7 +4,7 @@ proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; -client_max_body_size 1024m; +client_max_body_size 0; client_body_buffer_size 8192k; proxy_connect_timeout 600; proxy_send_timeout 600; diff --git a/states/nginx/templates/types/nextcloud.j2 b/states/nginx/templates/types/nextcloud.j2 index 7ef0755..58689f9 100644 --- a/states/nginx/templates/types/nextcloud.j2 +++ b/states/nginx/templates/types/nextcloud.j2 @@ -26,6 +26,8 @@ server { rewrite ^/.well-known/host-meta.json /public.php?service=host-meta-json last; rewrite ^/.well-known/carddav /remote.php/carddav/ redirect; rewrite ^/.well-known/caldav /remote.php/caldav/ redirect; + rewrite ^/.well-known/webfinger /public.php?service=webfinger last; + rewrite ^/.well-known/nodeinfo /public.php?service=nodeinfo last; rewrite ^(/core/doc/[^\/]+/)$ $1/index.html; try_files $uri $uri/ index.php; }