secubox-deb/common/nginx/modules.d/auth.conf
CyberMind-FR b6960559b1 fix(auth): Correct nginx proxy path and add login page (v1.7.0.3)
- Fix auth.conf nginx proxy to use /auth/ prefix (FastAPI root_path issue)
- Add explicit /api/v1/auth/auth/login location for login endpoint
- Create login.html page with proper authentication flow
- Add GRUB echo module to fix EFI boot error

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-04-14 17:11:53 +02:00

15 lines
474 B
Plaintext

# /etc/nginx/secubox.d/auth.conf
# Installed by secubox-auth package
# Explicit login endpoint (FastAPI root_path=/api/v1/auth, router prefix=/auth)
location = /api/v1/auth/auth/login {
proxy_pass http://unix:/run/secubox/auth.sock:/auth/auth/login;
include /etc/nginx/snippets/secubox-proxy.conf;
}
# All other auth endpoints
location /api/v1/auth/ {
proxy_pass http://unix:/run/secubox/auth.sock:/auth/;
include /etc/nginx/snippets/secubox-proxy.conf;
}