Make it work for /admin/antispam too

This commit is contained in:
Florent Daigniere
2023-03-13 08:40:29 +01:00
parent f44cd24bf8
commit e1739befc0

View File

@@ -232,6 +232,11 @@ http {
proxy_set_header X-Real-IP "";
proxy_set_header X-Forwarded-For "";
proxy_pass http://$antispam;
error_page 403 @antispam_login;
}
location @antispam_login {
return 302 /sso/login?url=$request_uri;
}
{% endif %}