prod proxy rules
All checks were successful
Deploy / CreateImage (push) Successful in 9m2s
Deploy / DeployService (push) Successful in 31s

This commit is contained in:
skeris 2025-03-20 22:01:14 +03:00
parent f4f618b552
commit 8517bbabde
2 changed files with 16 additions and 20 deletions

@ -20,7 +20,7 @@ jobs:
needs: CreateImage needs: CreateImage
uses: https://gitea.pena/PenaDevops/actions.git/.gitea/workflows/deploy.yml@v1.1.4-p7 uses: https://gitea.pena/PenaDevops/actions.git/.gitea/workflows/deploy.yml@v1.1.4-p7
with: with:
runner: hubprod runner: frontprod
actionid: ${{ gitea.run_id }} actionid: ${{ gitea.run_id }}

@ -21,10 +21,10 @@ server {
return 200; return 200;
} }
if ($host = sadmin.pena) { if ($host = sadmin.pena) {
proxy_pass http://10.6.0.9:59301; proxy_pass http://10.8.0.226:59301;
} }
if ($host != sadmin.pena) { if ($host != sadmin.pena) {
proxy_pass http://10.6.0.9:59301; proxy_pass http://10.8.0.226:59301;
} }
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;
@ -35,7 +35,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.26:1488/; proxy_pass http://10.8.0.12:1488/;
} }
location /user/ { location /user/ {
if ($request_method = OPTIONS) { if ($request_method = OPTIONS) {
@ -49,7 +49,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.9:59300; proxy_pass http://10.8.0.226:59300;
} }
location /manager/ { location /manager/ {
if ($request_method = OPTIONS) { if ($request_method = OPTIONS) {
@ -63,11 +63,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.9:59301/; proxy_pass http://10.8.0.226:59301/;
}
location /swagger/ {
proxy_pass http://10.8.0.8:59300/;
} }
location /heruvym/ { location /heruvym/ {
@ -82,7 +78,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.9:1488/; proxy_pass http://10.8.0.226:1488/;
} }
location /heruvym/v1.0.0/ { location /heruvym/v1.0.0/ {
@ -97,7 +93,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.9:1487/; proxy_pass http://10.8.0.226:1487/;
} }
location /strator/ { location /strator/ {
@ -112,7 +108,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.8.0.8:59303/; proxy_pass http://10.8.0.226:59303/;
} }
location /customer/v1.0.1/ { location /customer/v1.0.1/ {
@ -127,7 +123,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.9:8070/; proxy_pass http://10.8.0.226:8070/;
} }
location /answer/ { location /answer/ {
@ -142,7 +138,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.26:8066/; proxy_pass http://10.8.0.12:8066/;
} }
location /codeword/ { location /codeword/ {
@ -157,7 +153,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.9:59666/; proxy_pass http://10.8.0.226:59666/;
} }
location /codeword/v1.0.0/ { location /codeword/v1.0.0/ {
if ($request_method = OPTIONS) { if ($request_method = OPTIONS) {
@ -171,7 +167,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.9:59666/; proxy_pass http://10.8.0.226:59666/;
} }
location /price/ { location /price/ {
if ($request_method = OPTIONS) { if ($request_method = OPTIONS) {
@ -185,7 +181,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.9:8001/; proxy_pass http://10.8.0.226:8001/;
} }
location /squizimages { location /squizimages {
if ($request_method = OPTIONS) { if ($request_method = OPTIONS) {
@ -224,7 +220,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.9:7035/; proxy_pass http://10.8.0.226:7035/;
} }
location /verification/v1.0.0/ { location /verification/v1.0.0/ {
if ($request_method = OPTIONS) { if ($request_method = OPTIONS) {
@ -245,7 +241,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.9:7038/; proxy_pass http://10.8.0.226:7038/;
} }