Добавлена Яндекс.Капча

This commit is contained in:
mi
2026-07-23 18:53:32 +03:00
parent 31efbf3b69
commit 8c3c454998
36 changed files with 836 additions and 35 deletions
@@ -19,6 +19,11 @@ location = /service-worker.js {
add_header Cache-Control "no-cache";
include /etc/nginx/generated/security-headers.conf;
}
location = /register-sw.js {
root /usr/share/nginx/html;
add_header Cache-Control "no-cache";
include /etc/nginx/generated/security-headers.conf;
}
location / {
root /usr/share/nginx/html;
try_files $uri $uri/ /index.html;
@@ -107,6 +107,20 @@ server {
include /etc/nginx/snippets/proxy-keycloak.conf;
proxy_pass http://keycloak_upstream;
}
location = /auth/realms/han-chat/protocol/openid-connect/auth {
limit_req zone=auth burst=10;
include /etc/nginx/snippets/proxy-keycloak.conf;
include /etc/nginx/snippets/proxy-keycloak-captcha-csp.conf;
proxy_read_timeout 60s;
proxy_pass http://keycloak_upstream;
}
location = /auth/realms/han-chat/login-actions/authenticate {
limit_req zone=auth burst=10;
include /etc/nginx/snippets/proxy-keycloak.conf;
include /etc/nginx/snippets/proxy-keycloak-captcha-csp.conf;
proxy_read_timeout 60s;
proxy_pass http://keycloak_upstream;
}
location ^~ /auth/realms/ {
limit_req zone=auth burst=10;
include /etc/nginx/snippets/proxy-keycloak.conf;