update conf by ci service_discovery 4130

This commit is contained in:
ci 2024-09-23 14:16:14 +00:00
parent 8b743f87ef
commit 10b45aeec3

@ -2,439 +2,569 @@ server {
root /usr/share/nginx/html; root /usr/share/nginx/html;
access_log syslog:server=10.8.0.7:514,tag=nginx_access main; access_log syslog:server=10.8.0.7:514,tag=nginx_access main;
index index.html index.htm index.nginx-debian.html; index index.html index.htm index.nginx-debian.html;
server_name _; # managed by Certbot server_name _;
client_max_body_size 100M;# kill cache client_max_body_size 100M;
add_header Last-Modified $date_gmt; add_header Last-Modified $date_gmt;
add_header Cache-Control 'private no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0'; add_header Cache-Control 'private no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
add_header Access-Control-Allow-Origin $http_origin always; is_modified_since off;
add_header Access-Control-Allow-Credentials true always;
add_header Access-Control-Allow-Headers content-type,authorization,device,browser,os,devicetype,response-type always;
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
if_modified_since off;
expires off; expires off;
etag off; etag off;
location /404 {
try_files $uri $uri/ /index.html;
location /admin-auth-service// {
add_header Access-Control-Allow-Origin $http_origin always;
add_header Access-Control-Allow-Credentials true always;
add_header Access-Control-Allow-Headers content-type always;
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
if ($request_method = OPTIONS) {
return 200
} }
location /squiz/amocrm/ {
proxy_set_header Referer $host; proxy_set_header Referer $host;
proxy_set_header Origin $http_origin; proxy_set_header Origin $http_origin;
proxy_set_header Connection ''; proxy_set_header X-Real-IP $remote_addr;
proxy_http_version 1.1; proxy_set_header X-Client-Port $remote_port;
chunked_transfer_encoding off; proxy_set_header Origin $host;
proxy_buffering off;
proxy_cache off;
proxy_pass http://10.8.0.6:59301/;
}
location /auth// {
add_header Access-Control-Allow-Origin $http_origin 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-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
if ($request_method = OPTIONS) { if ($request_method = OPTIONS) {
return 200; return 200
} }
proxy_pass http://10.8.0.5:1492/amocrm/;
}
location /squiz/amocrm/oauth/ {
proxy_set_header Referer $host; proxy_set_header Referer $host;
proxy_set_header Origin $http_origin; proxy_set_header Origin $http_origin;
proxy_set_header Connection ''; proxy_set_header X-Real-IP $remote_addr;
proxy_http_version 1.1; proxy_set_header X-Client-Port $remote_port;
chunked_transfer_encoding off; proxy_set_header Origin $host;
proxy_buffering off;
proxy_cache off;
if ($request_method = OPTIONS) {
add_header Access-Control-Allow-Origin $http_origin always;
add_header Access-Control-Allow-Credentials true always;
add_header Access-Control-Allow-Headers content-type,authorization,device,browser,os,devicetype,response-type always;
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
return 200;
}
add_header Access-Control-Allow-Origin $http_origin always;
add_header Access-Control-Allow-Credentials true always;
add_header Access-Control-Allow-Headers content-type,authorization,device,browser,os,devicetype,response-type always;
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
proxy_pass http://10.8.0.5:1492/webhook/create/;
}
location /auth {
if ($request_method = OPTIONS) {
add_header Access-Control-Allow-Origin $http_origin always;
add_header Access-Control-Allow-Credentials true always;
add_header Access-Control-Allow-Headers content-type,authorization,response-type always;
return 200;
}
if ($host = sadmin.pena) {
proxy_pass http://10.8.0.6:59301;
}
if ($host != sadmin.pena) {
proxy_pass http://10.8.0.6:59300;
}
proxy_hide_header Access-Control-Allow-Origin;
add_header Access-Control-Allow-Origin $http_origin always;
add_header Access-Control-Allow-Credentials true always;
}
location /user/ {
if ($request_method = OPTIONS) {
add_header Access-Control-Allow-Origin $http_origin 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-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
return 200;
}
add_header Access-Control-Allow-Origin $http_origin 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-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
proxy_pass http://10.8.0.6:59300;
}
location /swagger/ {
proxy_pass http://10.8.0.6:59300/; proxy_pass http://10.8.0.6:59300/;
} }
location /heruvym/ { location /user/ {
add_header Access-Control-Allow-Origin $http_origin always; add_header Access-Control-Allow-Origin $http_origin always;
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,sess,response-type always; add_header Access-Control-Allow-Headers content-type,authorization,response-type always;
add_header Referrer-Policy unsafe-url 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_set_header Referer $host; if ($request_method = OPTIONS) {
proxy_set_header Origin $http_referer; return 200
proxy_set_header Connection '';
proxy_http_version 1.1;
chunked_transfer_encoding off;
proxy_buffering off;
proxy_cache off;
proxy_pass https://10.8.0.6:1488/;
} }
proxy_set_header Referer $host;
proxy_set_header Origin $http_origin;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Client-Port $remote_port;
proxy_set_header Origin $host;
proxy_pass http://10.8.0.6:59300/;
}
location /heruvym/v1.0.0/ { location /heruvym/v1.0.0/ {
add_header Access-Control-Allow-Origin $http_origin always; add_header Access-Control-Allow-Origin $http_origin always;
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,sess,response-type always; add_header Access-Control-Allow-Headers content-type,authorization,response-type always;
add_header Referrer-Policy unsafe-url 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;
if ($request_method = OPTIONS) {
return 200
}
proxy_set_header Referer $host; proxy_set_header Referer $host;
proxy_set_header Origin $http_referer; proxy_set_header Origin $http_origin;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Client-Port $remote_port;
proxy_set_header Origin $host;
proxy_set_header Connection ''; proxy_set_header Connection '';
proxy_http_version 1.1; proxy_http_version 1.1;
chunked_transfer_encoding off; chunked_transfer_encoding off;
proxy_buffering off; proxy_buffering off;
proxy_cache off; proxy_cache off;
proxy_pass https://10.8.0.6:1487/;
proxy_pass http://10.8.0.6:1487/;
} }
location /strator/ {
if ($request_method = OPTIONS) {
location /strator// {
add_header Access-Control-Allow-Origin $http_origin always; add_header Access-Control-Allow-Origin $http_origin always;
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;
return 200; if ($request_method = OPTIONS) {
return 200
} }
add_header Access-Control-Allow-Origin $http_origin always; proxy_set_header Referer $host;
add_header Access-Control-Allow-Credentials true always; proxy_set_header Origin $http_origin;
add_header Access-Control-Allow-Headers content-type,authorization always; proxy_set_header X-Real-IP $remote_addr;
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE; proxy_set_header X-Client-Port $remote_port;
proxy_set_header Origin $host;
proxy_pass http://10.8.0.6:59303/; proxy_pass http://10.8.0.6:59303/;
} }
location /customer/v1.0.0/ {
if ($request_method = OPTIONS) {
return 200;
}
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Client-Port $remote_port;
proxy_set_header Origin $host;
proxy_http_version 1.1;
chunked_transfer_encoding off;
proxy_buffering off;
proxy_cache off;
proxy_pass http://10.8.0.6:8066/;
}
location /customer/v1.0.1/ { location /customer/v1.0.1/ {
add_header Access-Control-Allow-Origin $http_origin 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-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
if ($request_method = OPTIONS) { if ($request_method = OPTIONS) {
return 200; return 200
} }
proxy_set_header Referer $host;
proxy_set_header Origin $http_origin;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Client-Port $remote_port; proxy_set_header X-Client-Port $remote_port;
proxy_set_header Origin $host; proxy_set_header Origin $host;
proxy_http_version 1.1;
chunked_transfer_encoding off;
proxy_buffering off;
proxy_cache off;
proxy_pass http://10.8.0.6:8067/; proxy_pass http://10.8.0.6:8067/;
} }
location /codeword/ {
if ($request_method = OPTIONS) {
add_header Access-Control-Allow-Origin $http_origin 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-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
return 200;
}
add_header Access-Control-Allow-Origin $http_origin 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-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
proxy_pass http://10.8.0.6:19100/;
}
location /codeword/v1.0.0/ { location /codeword/v1.0.0/ {
add_header Access-Control-Allow-Origin $http_origin always;
add_header Access-Control-Allow-Credentials true always;
add_header Access-Control-Allow-Headers content-type always;
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
if ($request_method = OPTIONS) { if ($request_method = OPTIONS) {
add_header Access-Control-Allow-Origin $http_origin always; return 200
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-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
return 200;
} }
add_header Access-Control-Allow-Origin $http_origin always; proxy_set_header Referer $host;
add_header Access-Control-Allow-Credentials true always; proxy_set_header Origin $http_origin;
add_header Access-Control-Allow-Headers content-type,authorization,response-type always; proxy_set_header X-Real-IP $remote_addr;
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE; proxy_set_header X-Client-Port $remote_port;
proxy_set_header Origin $host;
proxy_pass http://10.8.0.6:19100/; proxy_pass http://10.8.0.6:19100/;
} }
location /treasurer/ {
location /treasurer// {
add_header Access-Control-Allow-Origin $http_origin always;
add_header Access-Control-Allow-Credentials true always;
add_header Access-Control-Allow-Headers content-type always;
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
if ($request_method = OPTIONS) { if ($request_method = OPTIONS) {
add_header Access-Control-Allow-Origin $http_origin always; return 200
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-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
return 200;
} }
add_header Access-Control-Allow-Origin $http_origin always; proxy_set_header Referer $host;
add_header Access-Control-Allow-Credentials true always; proxy_set_header Origin $http_origin;
add_header Access-Control-Allow-Headers content-type,authorization,response-type always; proxy_set_header X-Real-IP $remote_addr;
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE; proxy_set_header X-Client-Port $remote_port;
proxy_set_header Origin $host;
proxy_pass http://10.8.0.6:8085/; proxy_pass http://10.8.0.6:8085/;
} }
location /answer/ {
location /price// {
add_header Access-Control-Allow-Origin $http_origin 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-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
if ($request_method = OPTIONS) {
return 200
}
proxy_set_header Referer $host; proxy_set_header Referer $host;
proxy_set_header Origin $http_origin; proxy_set_header Origin $http_origin;
proxy_set_header Connection ''; proxy_set_header X-Real-IP $remote_addr;
proxy_http_version 1.1; proxy_set_header X-Client-Port $remote_port;
chunked_transfer_encoding off; proxy_set_header Origin $host;
proxy_buffering off;
proxy_cache off;
if ($request_method = OPTIONS) {
add_header Access-Control-Allow-Origin $http_origin always;
add_header Access-Control-Allow-Credentials true always;
add_header Access-Control-Allow-Headers content-type,x-sessionkey,device,browser,os,devicetype,response-type always;
add_header Access-Control-Expose-Headers x-sessionkey,devicetype always;
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
return 200;
}
add_header Access-Control-Allow-Origin $http_origin always;
add_header Access-Control-Allow-Credentials true always;
add_header Access-Control-Allow-Headers content-type,x-sessionkey,device,browser,os,devicetype,response-type always;
add_header Access-Control-Expose-Headers x-sessionkey,devicetype always;
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
proxy_pass http://10.8.0.5:1490/;
}
location /answer/v1.0.0/ {
proxy_set_header Referer $host;
proxy_set_header Origin $http_origin;
proxy_set_header Connection '';
proxy_http_version 1.1;
chunked_transfer_encoding off;
proxy_buffering off;
proxy_cache off;
if ($request_method = OPTIONS) {
add_header Access-Control-Allow-Origin $http_origin always;
add_header Access-Control-Allow-Credentials true always;
add_header Access-Control-Allow-Headers content-type,x-sessionkey,device,browser,os,devicetype,response-type always;
add_header Access-Control-Expose-Headers x-sessionkey,devicetype always;
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
return 200;
}
add_header Access-Control-Allow-Origin $http_origin always;
add_header Access-Control-Allow-Credentials true always;
add_header Access-Control-Allow-Headers content-type,x-sessionkey,device,browser,os,devicetype,response-type always;
add_header Access-Control-Expose-Headers x-sessionkey,devicetype always;
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
proxy_pass http://10.8.0.5:1491/;
}
location /squiz/ {
proxy_set_header Referer $host;
proxy_set_header Origin $http_origin;
proxy_set_header Connection '';
proxy_http_version 1.1;
chunked_transfer_encoding off;
proxy_buffering off;
proxy_cache off;
if ($request_method = OPTIONS) {
add_header Access-Control-Allow-Origin $http_origin always;
add_header Access-Control-Allow-Credentials true always;
add_header Access-Control-Allow-Headers content-type,authorization,device,browser,os,devicetype,response-type always;
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
return 200;
}
add_header Access-Control-Allow-Origin $http_origin always;
add_header Access-Control-Allow-Credentials true always;
add_header Access-Control-Allow-Headers content-type,authorization,device,browser,os,devicetype,response-type always;
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
proxy_pass http://10.8.0.5:1488/;
}
location /squizstorer/ {
if ($request_method = OPTIONS) {
add_header Access-Control-Allow-Origin $http_origin 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-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
return 200;
}
add_header Access-Control-Allow-Origin $http_origin 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-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
proxy_set_header Referer $host;
proxy_set_header Origin $http_origin;
proxy_set_header Connection '';
proxy_http_version 1.1;
chunked_transfer_encoding off;
proxy_buffering off;
proxy_cache off;
proxy_pass http://10.8.0.5:1489/;
}
location /squizstorer/v1.0.0/ {
if ($request_method = OPTIONS) {
add_header Access-Control-Allow-Origin $http_origin 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-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
return 200;
}
add_header Access-Control-Allow-Origin $http_origin 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-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
proxy_set_header Referer $host;
proxy_set_header Origin $http_origin;
proxy_set_header Connection '';
proxy_http_version 1.1;
chunked_transfer_encoding off;
proxy_buffering off;
proxy_cache off;
proxy_pass http://10.8.0.5:1589/;
}
location /price/ {
if ($request_method = OPTIONS) {
add_header Access-Control-Allow-Origin $http_origin 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-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
return 200;
}
add_header Access-Control-Allow-Origin $http_origin 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-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
proxy_pass http://10.8.0.6:8001/; proxy_pass http://10.8.0.6:8001/;
} }
location /feedback/ {
location /feedback// {
add_header Access-Control-Allow-Origin $http_origin always;
add_header Access-Control-Allow-Credentials true always;
add_header Access-Control-Allow-Headers content-type,response-type always;
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
if ($request_method = OPTIONS) { if ($request_method = OPTIONS) {
add_header Access-Control-Allow-Origin $http_origin always; return 200
add_header Access-Control-Allow-Credentials true always;
add_header Access-Control-Allow-Headers content-type,response-type always;
return 200;
} }
add_header Access-Control-Allow-Origin $http_origin always; proxy_set_header Referer $host;
add_header Access-Control-Allow-Credentials true always; proxy_set_header Origin $http_origin;
add_header Access-Control-Allow-Headers content-type,response-type always; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host; proxy_set_header X-Client-Port $remote_port;
proxy_set_header Origin $host;
proxy_pass http://10.8.0.6:8006/; proxy_pass http://10.8.0.6:8006/;
} }
location /requestquiz/ {
location /requestquiz// {
add_header Access-Control-Allow-Origin $http_origin always;
add_header Access-Control-Allow-Credentials true always;
add_header Access-Control-Allow-Headers content-type,response-type always;
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
if ($request_method = OPTIONS) { if ($request_method = OPTIONS) {
add_header Access-Control-Allow-Origin $http_origin always; return 200
add_header Access-Control-Allow-Credentials true always;
add_header Access-Control-Allow-Headers content-type,response-type always;
return 200;
} }
add_header Access-Control-Allow-Origin $http_origin always; proxy_set_header Referer $host;
add_header Access-Control-Allow-Credentials true always; proxy_set_header Origin $http_origin;
add_header Access-Control-Allow-Headers content-type,response-type always; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host; proxy_set_header X-Client-Port $remote_port;
proxy_set_header Origin $host;
proxy_pass http://10.8.0.6:8007/; proxy_pass http://10.8.0.6:8007/;
} }
location /verification/ {
add_header Access-Control-Allow-Origin $http_origin 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-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
if ($request_method = OPTIONS) {
return 200;
}
proxy_set_header Referer $host;
proxy_set_header Origin $http_origin;
proxy_set_header Connection '';
proxy_http_version 1.1;
chunked_transfer_encoding off;
proxy_buffering off;
proxy_cache off;
proxy_pass http://10.8.0.6:7035/;
}
location /verification/v1.0.0/ { location /verification/v1.0.0/ {
add_header Access-Control-Allow-Origin $http_origin always; add_header Access-Control-Allow-Origin $http_origin always;
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;
if ($request_method = OPTIONS) { if ($request_method = OPTIONS) {
return 200; return 200
} }
proxy_set_header Referer $host; proxy_set_header Referer $host;
proxy_set_header Origin $http_origin; proxy_set_header Origin $http_origin;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Client-Port $remote_port;
proxy_set_header Origin $host;
proxy_set_header Connection ''; proxy_set_header Connection '';
proxy_http_version 1.1; proxy_http_version 1.1;
chunked_transfer_encoding off; chunked_transfer_encoding off;
proxy_buffering off; proxy_buffering off;
proxy_cache off; proxy_cache off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Client-Port $remote_port;
proxy_set_header Origin $host;
proxy_pass http://10.8.0.6:7036/; proxy_pass http://10.8.0.6:7036/;
} }
location / {
if ($host = shub.pena.digital) {
proxy_pass http://hub;
}
if ($host = sdocs.pena.digital) {
proxy_pass http://docs;
}
if ($host = services.pena.digital) { location /pena-social-auth-service// {
proxy_pass http://services;
}
if ($host = slinks.pena.digital) {
proxy_pass http://dwarfener;
}
if ($host = smetrica.pena.digital) {
proxy_pass http://metrica;
}
if ($host = s.hbpn.link) {
add_header Access-Control-Allow-Origin $http_origin always; add_header Access-Control-Allow-Origin $http_origin always;
add_header Access-Control-Allow-Credentials true always;
add_header Access-Control-Allow-Headers content-type always;
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
if ($request_method = OPTIONS) {
return 200
}
proxy_set_header Referer $host;
proxy_set_header Origin $http_origin;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Client-Port $remote_port;
proxy_set_header Origin $host;
proxy_pass http://10.8.0.6:59344/;
}
location /cbrfworker-service-staging// {
add_header Access-Control-Allow-Origin $http_origin always;
add_header Access-Control-Allow-Credentials true always;
add_header Access-Control-Allow-Headers content-type always;
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
if ($request_method = OPTIONS) {
return 200
}
proxy_set_header Referer $host;
proxy_set_header Origin $http_origin;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Client-Port $remote_port;
proxy_set_header Origin $host;
proxy_pass http://10.8.0.6:3131/;
}
location /squiz-amocrm// {
add_header Access-Control-Allow-Origin $http_origin always;
add_header Access-Control-Allow-Credentials true always;
add_header Access-Control-Allow-Headers content-type,authorization,device,browser,os,devicetype,response-type always;
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
if ($request_method = OPTIONS) {
return 200
}
proxy_set_header Referer $host;
proxy_set_header Origin $http_origin;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Client-Port $remote_port;
proxy_set_header Origin $host;
proxy_pass http://10.8.0.5:1492/;
}
location /squiz/amocrm/ {
add_header Access-Control-Allow-Origin $http_origin always;
add_header Access-Control-Allow-Credentials true always;
add_header Access-Control-Allow-Headers content-type,authorization,device,browser,os,devicetype,response-type always;
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
if ($request_method = OPTIONS) {
return 200
}
proxy_set_header Referer $host;
proxy_set_header Origin $http_origin;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Client-Port $remote_port;
proxy_set_header Origin $host;
proxy_pass http://10.8.0.5:1492/amocrm/;
}
location /squiz/amocrm/oauth/ {
add_header Access-Control-Allow-Origin $http_origin always;
add_header Access-Control-Allow-Credentials true always;
add_header Access-Control-Allow-Headers content-type,authorization,device,browser,os,devicetype,response-type always;
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
if ($request_method = OPTIONS) {
return 200
}
proxy_set_header Referer $host;
proxy_set_header Origin $http_origin;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Client-Port $remote_port;
proxy_set_header Origin $host;
proxy_pass http://10.8.0.5:1492/webhook/create/;
}
location /answer/v1.0.0/ {
add_header Access-Control-Allow-Origin $http_origin always;
add_header Access-Control-Allow-Credentials true always;
add_header Access-Control-Allow-Headers content-type,x-sessionkey,device,browser,os,devicetype,response-type always;
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
if ($request_method = OPTIONS) {
return 200
}
proxy_set_header Referer $host;
proxy_set_header Origin $http_origin;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Client-Port $remote_port;
proxy_set_header Origin $host;
proxy_set_header Connection '';
proxy_http_version 1.1;
chunked_transfer_encoding off;
proxy_buffering off;
proxy_cache off;
proxy_pass http://10.8.0.5:1491/;
}
location /squiz// {
add_header Access-Control-Allow-Origin $http_origin always;
add_header Access-Control-Allow-Credentials true always;
add_header Access-Control-Allow-Headers content-type,authorization,device,browser,os,devicetype,response-type always;
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
if ($request_method = OPTIONS) {
return 200
}
proxy_set_header Referer $host;
proxy_set_header Origin $http_origin;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Client-Port $remote_port;
proxy_set_header Origin $host;
proxy_pass http://10.8.0.5:1488/;
}
location /squizstorer/v1.0.0/ {
add_header Access-Control-Allow-Origin $http_origin 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-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
if ($request_method = OPTIONS) {
return 200
}
proxy_set_header Referer $host;
proxy_set_header Origin $http_origin;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Client-Port $remote_port;
proxy_set_header Origin $host;
proxy_set_header Connection '';
proxy_http_version 1.1;
chunked_transfer_encoding off;
proxy_buffering off;
proxy_cache off;
proxy_pass http://10.8.0.5:1589/;
}
location / {
if ($host = squiz.pena.digital) {
proxy_pass http://squiz;
}
if ($host = s.hbpn.link) {
add_header Access-Control-Allow-Origin,$http_origin,always;
proxy_pass http://respondent; proxy_pass http://respondent;
} }
if ($host = sdocs.pena.digital) {
proxy_pass http://docs;
}
if ($host = slinks.pena.digital) {
proxy_pass http://dwarfener;
}
if ($host = newerait.pena.digital) {
proxy_pass http://squizlanding;
}
if ($host = smetrica.pena.digital) {
proxy_pass http://metrica;
}
if ($host = services.pena.digital) {
proxy_pass http://services;
}
if ($host = shub.pena.digital) {
proxy_pass http://hub;
}
if ($host = soauth.pena.digital) { if ($host = soauth.pena.digital) {
add_header Access-Control-Allow-Origin $http_origin always; add_header Access-Control-Allow-Origin $http_origin always;
add_header Access-Control-Allow-Credentials true always; add_header Access-Control-Allow-Credentials true always;
@ -443,16 +573,14 @@ access_log syslog:server=10.8.0.7:514,tag=nginx_access main;
proxy_pass http://10.8.0.6:59344; proxy_pass http://10.8.0.6:59344;
} }
if ($host = newerait.pena.digital) {
proxy_pass http://squizlanding;
}
if ($host = squiz.pena.digital) {
proxy_pass http://squiz;
} }
location /404 {
try_files $uri $uri/ /index.html;
} }
location /robots.txt { location /robots.txt {
if ($host = services,pena.digital) { if ($host = services.pena.digital) {
return 301 https://pena.digital/robots.txt; return 301 https://pena.digital/robots.txt;
} }
try_files $uri $uri/ /index.html; try_files $uri $uri/ /index.html;
@ -462,20 +590,15 @@ access_log syslog:server=10.8.0.7:514,tag=nginx_access main;
listen 443 ssl; # managed by Certbot listen 443 ssl; # managed by Certbot
ssl_certificate /etc/nginx/fullchain.pem; # managed by Certbot ssl_certificate /etc/nginx/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/nginx/privkey.pem; # managed by Certbot ssl_certificate_key /etc/nginx/privkey.pem; # managed by Certbot
} }
server { server {
listen 80; listen 80;
listen [::]:80; listen [::]:80;
server_name _; server_name _;
client_max_body_size 100M;
location /robots.txt { location /robots.txt {
if ($host = services,pena.digital) {
return 301 https://pena.digital/robots.txt; return 301 https://pena.digital/robots.txt;
} }
try_files $uri $uri/ /index.html;
}
return 301 https://$host$request_uri; return 301 https://$host$request_uri;
} }
@ -488,3 +611,4 @@ server {
stub_status; stub_status;
} }
} }