fix: trailing /

This commit is contained in:
s-prechtl 2025-06-22 19:16:07 +02:00
parent 6473c71190
commit c904a5df7d

View file

@ -42,7 +42,7 @@
recommendedProxySettings = true;
recommendedTlsSettings = true;
virtualHosts.${config.services.nextcloud.hostName} = {
forceSSL = false;
forceSSL = true;
enableACME = true;
listen = [
{
@ -60,14 +60,14 @@
}
];
locations = {
"/nextcloud" = {
"/nextcloud/" = {
priority = 9999;
extraConfig = ''
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-NginX-Proxy true;
proxy_set_header X-Forwarded-Proto http;
rewrite ^/nextcloud(.*)$ $1 break;
#rewrite ^/nextcloud(.*)$ $1 break;
proxy_pass http://127.0.0.1:8080/; # tailing / is important!
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;