stabil wenn sim down
This commit is contained in:
17
nginx.conf
17
nginx.conf
@@ -191,6 +191,9 @@ server {
|
|||||||
ssl_protocols TLSv1.2 TLSv1.3;
|
ssl_protocols TLSv1.2 TLSv1.3;
|
||||||
ssl_prefer_server_ciphers on;
|
ssl_prefer_server_ciphers on;
|
||||||
|
|
||||||
|
set $serverBackendSimulation "appRobot_Simulation:1003";
|
||||||
|
set $auth_backend "appServer_Auth:3000";
|
||||||
|
|
||||||
############# FALLBACK LOCATION (NEU – RICHTIGER ORT)
|
############# FALLBACK LOCATION (NEU – RICHTIGER ORT)
|
||||||
location @fallback {
|
location @fallback {
|
||||||
default_type text/html;
|
default_type text/html;
|
||||||
@@ -208,9 +211,13 @@ server {
|
|||||||
#############
|
#############
|
||||||
|
|
||||||
# ---- Static assets: keine Auth ----
|
# ---- Static assets: keine Auth ----
|
||||||
location ~* \.(?:js|css|png|jpg|jpeg|gif|ico|svg|webp)$ {
|
location ~* \.(?:js|css|png|jpg|jpeg|gif|ico|svg|webp|stl)$ {
|
||||||
proxy_pass https://appRobot_Simulation:1003;
|
proxy_pass https://$serverBackendSimulation;
|
||||||
|
|
||||||
|
proxy_ssl_server_name on;
|
||||||
|
proxy_ssl_name thinkcentre.local;
|
||||||
proxy_ssl_verify off;
|
proxy_ssl_verify off;
|
||||||
|
|
||||||
proxy_set_header Host thinkcentre.local;
|
proxy_set_header Host thinkcentre.local;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
@@ -223,7 +230,7 @@ server {
|
|||||||
# ---- WebSocket-Endpoint ----
|
# ---- WebSocket-Endpoint ----
|
||||||
location /echo {
|
location /echo {
|
||||||
auth_request /nginxauth;
|
auth_request /nginxauth;
|
||||||
proxy_pass https://appRobot_Simulation:1003/echo;
|
proxy_pass https://$serverBackendSimulation/echo;
|
||||||
|
|
||||||
proxy_ssl_server_name on;
|
proxy_ssl_server_name on;
|
||||||
proxy_ssl_name thinkcentre.local;
|
proxy_ssl_name thinkcentre.local;
|
||||||
@@ -246,7 +253,7 @@ server {
|
|||||||
location / {
|
location / {
|
||||||
auth_request /nginxauth;
|
auth_request /nginxauth;
|
||||||
|
|
||||||
proxy_pass https://appRobot_Simulation:1003/;
|
proxy_pass https://$serverBackendSimulation/;
|
||||||
|
|
||||||
proxy_ssl_server_name on;
|
proxy_ssl_server_name on;
|
||||||
proxy_ssl_name thinkcentre.local;
|
proxy_ssl_name thinkcentre.local;
|
||||||
@@ -277,7 +284,7 @@ server {
|
|||||||
# ------------------------------------------------------------
|
# ------------------------------------------------------------
|
||||||
location = /nginxauth {
|
location = /nginxauth {
|
||||||
internal;
|
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
|
proxy_set_header Cookie $http_cookie; #***# AUTH
|
||||||
|
|
||||||
#***# AUTH HEADER ERWEITERUNG
|
#***# AUTH HEADER ERWEITERUNG
|
||||||
|
|||||||
Reference in New Issue
Block a user