From e1739befc0bfacd3de05fe42bcbca3802b6308f6 Mon Sep 17 00:00:00 2001 From: Florent Daigniere Date: Mon, 13 Mar 2023 08:40:29 +0100 Subject: [PATCH] Make it work for /admin/antispam too --- core/nginx/conf/nginx.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/nginx/conf/nginx.conf b/core/nginx/conf/nginx.conf index 3c7dbc35..9aab226b 100644 --- a/core/nginx/conf/nginx.conf +++ b/core/nginx/conf/nginx.conf @@ -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 %}