mailsystem: rspamd: Ensure proxy headers for webui are configured
This commit is contained in:
parent
35aeb19b24
commit
1b26a41aaf
1 changed files with 4 additions and 0 deletions
|
|
@ -120,6 +120,10 @@ in {
|
||||||
locations."/rspamd" = {
|
locations."/rspamd" = {
|
||||||
proxyPass = "http://unix:${rspamdControllerSocket}:/";
|
proxyPass = "http://unix:${rspamdControllerSocket}:/";
|
||||||
basicAuthFile = cfg.rspamd.webUi.basicAuthFile;
|
basicAuthFile = cfg.rspamd.webUi.basicAuthFile;
|
||||||
|
extraConfig = ''
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
sslCertificate = lib.mkIf (cfg.certificateScheme == "selfsigned") sslCertPath;
|
sslCertificate = lib.mkIf (cfg.certificateScheme == "selfsigned") sslCertPath;
|
||||||
sslCertificateKey = lib.mkIf (cfg.certificateScheme == "selfsigned") sslKeyPath;
|
sslCertificateKey = lib.mkIf (cfg.certificateScheme == "selfsigned") sslKeyPath;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue