From 98746f0d2ecf79956f8d0b90f5c41afa6f2d866e Mon Sep 17 00:00:00 2001 From: LukasJuraczka Date: Tue, 30 Dec 2025 15:27:40 +0100 Subject: [PATCH] Nginx Proxy verbessert --- nginx.conf | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/nginx.conf b/nginx.conf index 7a413bc..fd34585 100644 --- a/nginx.conf +++ b/nginx.conf @@ -7,9 +7,20 @@ server { try_files $uri $uri/ /index.html; } - location /api/ { - proxy_pass http://192.168.2.186:9090/; + location /ProductsRequest { + proxy_pass http://192.168.2.186:9090/ProductsRequest; + proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; } + location /CalculateRequest { + proxy_pass http://192.168.2.186:9090/CalculateRequest; + + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + } }