Update default.conf

This commit is contained in:
Mikhail 2024-01-11 00:00:32 +00:00
parent 843e95e526
commit d851203e91

@ -13,10 +13,10 @@ server {
return 200; return 200;
} }
if ($host = admin.pena.digital) { if ($host = admin.pena.digital) {
proxy_pass http://10.6.0.11:8080; proxy_pass http://10.6.0.11:59301;
} }
if ($host != admin.pena.digital) { if ($host != admin.pena.digital) {
proxy_pass http://10.6.0.11:8080; proxy_pass http://10.6.0.11:59300;
} }
proxy_hide_header Access-Control-Allow-Origin; proxy_hide_header Access-Control-Allow-Origin;
add_header Access-Control-Allow-Origin $http_origin always; add_header Access-Control-Allow-Origin $http_origin always;
@ -34,11 +34,11 @@ server {
add_header Access-Control-Allow-Credentials true always; add_header Access-Control-Allow-Credentials true always;
add_header Access-Control-Allow-Headers content-type,authorization always; add_header Access-Control-Allow-Headers content-type,authorization always;
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE; add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
proxy_pass http://10.6.0.11:8080; proxy_pass http://10.6.0.11:59300;
} }
location /swagger/ { location /swagger/ {
proxy_pass http://10.6.0.11:8080/; proxy_pass http://10.6.0.11:59300/;
} }
location /heruvym/ { location /heruvym/ {