Add HTTP headers to Nextcloud

This commit is contained in:
Sam A. 2023-12-31 14:48:22 +01:00
parent 9dc3df8d0f
commit df2172d72b
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA
3 changed files with 10 additions and 1 deletions

View file

@ -9,6 +9,7 @@ server {
resolver 127.0.0.11 valid=30s;
set $upstream http://ipfs:5001;
proxy_pass $upstream;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto "https";
}

View file

@ -9,6 +9,7 @@ server {
resolver 127.0.0.11 valid=30s;
set $upstream http://monerod:18089;
proxy_pass $upstream;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto "https";
}

View file

@ -9,8 +9,15 @@ server {
resolver 127.0.0.11 valid=30s;
set $upstream http://nextcloud:80;
proxy_pass $upstream;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto "https";
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_read_timeout 86400s;
client_body_buffer_size 512k;
client_max_body_size 0;
}
location ~^/\.well-known/(cal|card)dav$ {