Build ui for prod
This commit is contained in:
@@ -20,9 +20,15 @@ server {
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
|
||||
# Reverse proxy for the UI and default catch-all
|
||||
# Serve static files if they exist, otherwise proxy to the UI backend
|
||||
location / {
|
||||
proxy_pass http://${NGINX_INTERNAL_HOST}:${UI_PORT}/;
|
||||
root ${UI_ROOT};
|
||||
try_files $uri /index.html @ui_backend;
|
||||
}
|
||||
|
||||
# Fallback to proxying for UI requests
|
||||
location @ui_backend {
|
||||
proxy_pass http://${NGINX_INTERNAL_HOST}:${UI_PORT};
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
|
||||
Reference in New Issue
Block a user