server { listen 0.0.0.0:9121; server_name localhost; # Kanban OS (Strips prefix /kanban-os/ and sends / to Python) location /kanban-os/ { proxy_pass http://127.0.0.1:9120/; 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; } # Task Detail (Passes /task directly to Kanban server) location /task { proxy_pass http://127.0.0.1:9120; 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; } # File Browser (Passes /files/ directly to Kanban server) location /files/ { proxy_pass http://127.0.0.1:9120; 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; } # GLV SEO Dashboard Demo (Static Files from Astro SSG build) location /glv-dashboard-demo/ { alias /opt/ai-os/products/ceo/projects/GLV/seo-dashboard-app/dist/; index index.html; try_files $uri $uri/ =404; } # Astro Dev Server - Blog Pages & References (Keep this for Astro blog, if any) location ~ ^/(pdf|references|about|projects|posts|docs) { proxy_pass http://127.0.0.1:9126; 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; } # Astro Dev Server - Assets & Static Files (Keep this for Astro blog, if any) location ~ ^/(_astro|images|scripts|@vite|@id|@fs|node_modules|src|favicon|nhinhivo|background|nhi-nhi-vo|profile|open-graph|Nhi_Vo_Resume|Nhi-Vo-Resume) { proxy_pass http://127.0.0.1:9126; 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; } # Hermes Dashboard (port 9119, no auth on loopback) location / { proxy_pass http://127.0.0.1:9119; proxy_set_header Host "127.0.0.1:9119"; 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_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; # Inject nav bar vao dau body (Co them nut Blog PDF de tien truy cap) sub_filter '
' ''; sub_filter_once on; } }