Add province-scoped branches for loan paid letters and harden loans.user_id.
Expose GET /loan-paid-off-letters/branches?province_id= for form pickers, require loans.user_id, and proxy the Vite frontend under /online/. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -58,6 +58,25 @@ server {
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
|
||||
# --- online frontend (Vite) → :5173 ---
|
||||
# Example: https://test.webulgam.com/online/
|
||||
# Do NOT strip /online — Vite base is /online/, stripping causes a 302 loop.
|
||||
location = /online {
|
||||
return 301 /online/;
|
||||
}
|
||||
|
||||
location /online/ {
|
||||
proxy_pass http://127.0.0.1:5173;
|
||||
proxy_http_version 1.1;
|
||||
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;
|
||||
# Vite HMR / WebSocket
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
}
|
||||
|
||||
# --- online-backend → :5005 ---
|
||||
# Example: https://test.webulgam.com/online-backend/api/admin/...
|
||||
location /online-backend/ {
|
||||
|
||||
Reference in New Issue
Block a user