Add /admin route for admin dashboard
All checks were successful
Deploy Nginx Config to Ubuntu Server / deploy (push) Successful in 1s

- Enable external access to admin dashboard via ro-being.com/admin
- Proxy /admin requests to localhost:8000
- Maintain same proxy headers as API endpoints

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
happybell80 2025-07-14 19:30:53 +09:00
parent 6a0393c11a
commit 698913a351

View File

@ -137,6 +137,15 @@ server {
proxy_set_header X-Forwarded-Proto $scheme;
}
# Admin dashboard
location /admin {
proxy_pass http://localhost:8000;
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;
}
# RB10508 API endpoints
location /rb10508/ {
proxy_pass http://localhost:10508/;