From c41259dffa5651bd186cdf81adec89e0505f9a9c Mon Sep 17 00:00:00 2001 From: ChK Date: Sat, 14 Feb 2026 13:57:48 +0100 Subject: [PATCH] stabil wenn sim down --- nginx.conf | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/nginx.conf b/nginx.conf index e05eeda..cb4d995 100644 --- a/nginx.conf +++ b/nginx.conf @@ -191,6 +191,9 @@ server { ssl_protocols TLSv1.2 TLSv1.3; ssl_prefer_server_ciphers on; + set $serverBackendSimulation "appRobot_Simulation:1003"; + set $auth_backend "appServer_Auth:3000"; + ############# FALLBACK LOCATION (NEU – RICHTIGER ORT) location @fallback { default_type text/html; @@ -208,9 +211,13 @@ server { ############# # ---- Static assets: keine Auth ---- - location ~* \.(?:js|css|png|jpg|jpeg|gif|ico|svg|webp)$ { - proxy_pass https://appRobot_Simulation:1003; + location ~* \.(?:js|css|png|jpg|jpeg|gif|ico|svg|webp|stl)$ { + proxy_pass https://$serverBackendSimulation; + + proxy_ssl_server_name on; + proxy_ssl_name thinkcentre.local; proxy_ssl_verify off; + proxy_set_header Host thinkcentre.local; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; @@ -223,7 +230,7 @@ server { # ---- WebSocket-Endpoint ---- location /echo { auth_request /nginxauth; - proxy_pass https://appRobot_Simulation:1003/echo; + proxy_pass https://$serverBackendSimulation/echo; proxy_ssl_server_name on; proxy_ssl_name thinkcentre.local; @@ -246,7 +253,7 @@ server { location / { auth_request /nginxauth; - proxy_pass https://appRobot_Simulation:1003/; + proxy_pass https://$serverBackendSimulation/; proxy_ssl_server_name on; proxy_ssl_name thinkcentre.local; @@ -277,7 +284,7 @@ server { # ------------------------------------------------------------ location = /nginxauth { internal; - proxy_pass http://appServer_Auth:3000/internal/auth; #***# AUTH + proxy_pass http://$auth_backend/internal/auth; #***# AUTH proxy_set_header Cookie $http_cookie; #***# AUTH #***# AUTH HEADER ERWEITERUNG