Add extra middleware to (hopefully) fix syncthing remote gui

This commit is contained in:
Evie Litherland-Smith 2023-10-26 19:35:52 +01:00
parent 0a43fe7295
commit 2fb800ab34
2 changed files with 7 additions and 1 deletions

View file

@ -51,6 +51,12 @@
stsSeconds = "31536000";
stsIncludeSubdomains = true;
};
hostHeaders.headers.customRequestHeaders = {
Host = "$host";
X-Real-IP = "$remote_addr";
X-Forwarded-For = "$proxy_add_x_forwarded_for";
X-Forwarded-Proto = "$scheme";
};
};
};
};

View file

@ -7,7 +7,7 @@
rule = "Host(`sync.xenia.me.uk`)";
entryPoints = [ "http" "https" ];
service = "syncthing-webinterface";
middlewares = [ "auth" ];
middlewares = [ "auth" "hostHeaders" ];
tls = { certResolver = "default"; };
};
services.syncthing-webinterface.loadBalancer.servers =