mailsystem: rspamd: Ensure proxy headers for webui are configured
This commit is contained in:
parent
5eb469916f
commit
db161e296f
1 changed files with 4 additions and 0 deletions
|
|
@ -120,6 +120,10 @@ in {
|
|||
locations."/rspamd" = {
|
||||
proxyPass = "http://unix:${rspamdControllerSocket}:/";
|
||||
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;
|
||||
sslCertificateKey = lib.mkIf (cfg.certificateScheme == "selfsigned") sslKeyPath;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue