Add extra middleware to (hopefully) fix syncthing remote gui
This commit is contained in:
parent
0a43fe7295
commit
2fb800ab34
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -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 =
|
||||
|
|
Loading…
Reference in a new issue