feat: updated frontend use run time config inject value

This commit is contained in:
=
2025-01-06 12:29:58 +05:30
parent d0648ca596
commit d5412f916f
17 changed files with 111 additions and 41 deletions

View File

@@ -14,6 +14,19 @@ server {
proxy_pass http://backend:4000;
proxy_redirect off;
proxy_cookie_path / "/; HttpOnly; SameSite=strict";
}
location /runtime-ui-env.js {
proxy_set_header X-Real-RIP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
proxy_pass http://backend:4000;
proxy_redirect off;
proxy_cookie_path / "/; HttpOnly; SameSite=strict";
}
@@ -66,4 +79,4 @@ server {
proxy_pass http://frontend:3000;
proxy_redirect off;
}
}
}