Nginx Proxy verbessert
All checks were successful
Angular Build & Deploy / deploy (push) Successful in 44s
All checks were successful
Angular Build & Deploy / deploy (push) Successful in 44s
This commit is contained in:
15
nginx.conf
15
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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user