modified: serv_nginx/nginx/nginx-ssl.conf

delete redirect to auth
This commit is contained in:
2025-10-21 06:01:55 +05:00
parent 8584d52ebb
commit 0380900104
-19
View File
@@ -94,25 +94,6 @@ server {
proxy_buffering off;
}
# Редирект корневого пути на /auth если нужно
location = / {
return 302 /auth/;
}
# Static assets with longer cache
location ~* /auth/.*\.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ {
proxy_pass http://keycloak:8080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Port $server_port;
# Cache static assets
expires 1y;
add_header Cache-Control "public, immutable";
}
}