mirror of
https://github.com/CyberMind-FR/secubox-deb.git
synced 2026-07-29 12:34:38 +00:00
- 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>
15 lines
474 B
Plaintext
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;
|
|
}
|