deactivated corp proxy
This commit is contained in:
@@ -46,6 +46,8 @@ if _COMBINED_CERT.exists():
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
# Corporate proxy — needed when Kiro spawns the process (no .zshrc sourced)
|
# Corporate proxy — needed when Kiro spawns the process (no .zshrc sourced)
|
||||||
|
# Only enable this if explicitly requested via environment variable.
|
||||||
|
if _os.environ.get("USE_CORP_PROXY", "0") == "1":
|
||||||
_PROXY = "http://aproxy.corproot.net:8080"
|
_PROXY = "http://aproxy.corproot.net:8080"
|
||||||
_NO_PROXY = "corproot.net,sharedtcs.net,127.0.0.1,localhost,bix.swisscom.com,swisscom.com"
|
_NO_PROXY = "corproot.net,sharedtcs.net,127.0.0.1,localhost,bix.swisscom.com,swisscom.com"
|
||||||
_os.environ.setdefault("HTTP_PROXY", _PROXY)
|
_os.environ.setdefault("HTTP_PROXY", _PROXY)
|
||||||
|
|||||||
@@ -18,7 +18,8 @@ server {
|
|||||||
# Redirect all HTTP to HTTPS (uncomment after certbot setup)
|
# Redirect all HTTP to HTTPS (uncomment after certbot setup)
|
||||||
# return 301 https://$host$request_uri;
|
# return 301 https://$host$request_uri;
|
||||||
|
|
||||||
location / {
|
# Map API requests to the Python backend
|
||||||
|
location /api/ {
|
||||||
proxy_pass http://127.0.0.1:8998;
|
proxy_pass http://127.0.0.1:8998;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
@@ -27,4 +28,11 @@ server {
|
|||||||
proxy_read_timeout 120s;
|
proxy_read_timeout 120s;
|
||||||
proxy_connect_timeout 10s;
|
proxy_connect_timeout 10s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Serve the compiled Node.js frontend directly
|
||||||
|
location / {
|
||||||
|
root /opt/signalplatform/frontend/dist;
|
||||||
|
index index.html;
|
||||||
|
try_files $uri $uri/ /index.html;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user