Fix logout (add missing nginx auth proxy) + show name/email in sidebar footer
The /hk-planner/api/auth/ → central auth nginx block was missing, causing logout to hit the app backend. Also corrects the logout URL and switches from window.location.href='/' to reload(). Shows name + email in sidebar footer. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
1a5de8d3fc
commit
872251250e
2 changed files with 15 additions and 4 deletions
|
|
@ -24,6 +24,14 @@ server {
|
|||
try_files $uri =404;
|
||||
}
|
||||
|
||||
location /hk-planner/api/auth/ {
|
||||
proxy_pass http://10.10.10.101:3001/api/auth/;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
add_header Cache-Control "no-store";
|
||||
}
|
||||
|
||||
location /hk-planner/api/ {
|
||||
proxy_pass http://backend:3001/api/;
|
||||
proxy_set_header Host $host;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue