stabil wenn sim down

This commit is contained in:
ChK
2026-02-14 13:57:48 +01:00
parent 99629c267f
commit c41259dffa

View File

@@ -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