Update default.conf

This commit is contained in:
Mikhail 2024-04-21 18:39:17 +00:00
parent 13d6525cb9
commit 8154bdad94

@ -46,10 +46,10 @@ server {
return 200; return 200;
} }
if ($host = sadmin.pena) { if ($host = sadmin.pena) {
proxy_pass http://10.6.0.11:59301; proxy_pass http://10.8.0.6:59301;
} }
if ($host != sadmin.pena) { if ($host != sadmin.pena) {
proxy_pass http://10.6.0.11:59300; proxy_pass http://10.8.0.6: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;
@ -67,11 +67,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,response-type always; add_header Access-Control-Allow-Headers content-type,authorization,response-type 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:59300; proxy_pass http://10.8.0.6:59300;
} }
location /swagger/ { location /swagger/ {
proxy_pass http://10.6.0.11:59300/; proxy_pass http://10.8.0.6:59300/;
} }
location /heruvym/ { location /heruvym/ {
@ -87,7 +87,7 @@ server {
chunked_transfer_encoding off; chunked_transfer_encoding off;
proxy_buffering off; proxy_buffering off;
proxy_cache off; proxy_cache off;
proxy_pass https://10.6.0.11:1488/; proxy_pass https://10.8.0.6:1488/;
} }
location /strator/ { location /strator/ {
@ -102,7 +102,7 @@ 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:59303/; proxy_pass http://10.8.0.6:59303/;
} }
location /customer/ { location /customer/ {
@ -117,7 +117,7 @@ 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,response-type always; add_header Access-Control-Allow-Headers content-type,authorization,response-type 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:8065/; proxy_pass http://10.8.0.6:8065/;
} }
location /codeword/ { location /codeword/ {
@ -132,7 +132,7 @@ 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,response-type always; add_header Access-Control-Allow-Headers content-type,authorization,response-type 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:59664/; proxy_pass http://10.8.0.6:59664/;
} }
location /treasurer/ { location /treasurer/ {
@ -147,7 +147,7 @@ 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,response-type always; add_header Access-Control-Allow-Headers content-type,authorization,response-type 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:8085/; proxy_pass http://10.8.0.6:8085/;
} }
location /answer/ { location /answer/ {
@ -233,7 +233,7 @@ 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,response-type always; add_header Access-Control-Allow-Headers content-type,authorization,response-type 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:8001/; proxy_pass http://10.8.0.6:8001/;
} }
location /feedback/ { location /feedback/ {
if ($request_method = OPTIONS) { if ($request_method = OPTIONS) {
@ -303,7 +303,7 @@ server {
chunked_transfer_encoding off; chunked_transfer_encoding off;
proxy_buffering off; proxy_buffering off;
proxy_cache off; proxy_cache off;
proxy_pass http://10.6.0.11:7035/; proxy_pass http://10.8.0.6:7035/;
} }
location / { location / {
@ -331,7 +331,7 @@ 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:59344; proxy_pass http://10.8.0.6:59344;
} }
if ($host = newerait.pena.digital) { if ($host = newerait.pena.digital) {