Skip to content

Commit 49f81c2

Browse files
committed
feat: improve anubis whitelisting
Exclude legacy widgets urls and optional IdP integration.
1 parent 0c81a46 commit 49f81c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

etc/nginx/default.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ server {
7575
proxy_connect_timeout 3600;
7676

7777
{% if WEBLATE_ANUBIS_URL %}
78-
location ~ ^{{ WEBLATE_URL_PREFIX }}(/widget/|/exports/rss/|/healthz/|/hooks/|/accounts/complete/|/accounts/auth/) {
78+
location ~ ^{{ WEBLATE_URL_PREFIX }}(/widgets?/|/idp/|/exports/rss/|/healthz/|/hooks/|/accounts/complete/|/accounts/auth/) {
7979
proxy_pass http://127.0.0.1:8081;
8080
}
8181
{% endif %}

0 commit comments

Comments
 (0)