2024-07-27 20:52:03 +00:00
|
|
|
server {
|
2023-05-07 11:03:39 +00:00
|
|
|
root /usr/share/nginx/html;
|
2024-09-23 14:16:14 +00:00
|
|
|
access_log syslog:server=10.8.0.7:514,tag=nginx_access main;
|
2023-05-07 11:03:39 +00:00
|
|
|
index index.html index.htm index.nginx-debian.html;
|
2024-09-23 14:16:14 +00:00
|
|
|
server_name _;
|
|
|
|
client_max_body_size 100M;
|
|
|
|
add_header Last-Modified $date_gmt;
|
|
|
|
add_header Cache-Control 'private no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
|
2024-09-23 21:30:42 +00:00
|
|
|
if_modified_since off;
|
2024-09-23 14:16:14 +00:00
|
|
|
expires off;
|
|
|
|
etag off;
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-09-23 21:24:43 +00:00
|
|
|
location /admin-auth-service/ {
|
2024-09-24 11:58:10 +00:00
|
|
|
if ($request_method = OPTIONS) {
|
2024-09-23 14:16:14 +00:00
|
|
|
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;
|
2024-09-23 21:37:25 +00:00
|
|
|
return 200;
|
2024-09-23 14:16:14 +00:00
|
|
|
}
|
2024-09-24 11:58:10 +00:00
|
|
|
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;
|
2024-09-23 14:16:14 +00:00
|
|
|
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:59301/;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-09-24 21:25:10 +00:00
|
|
|
location /auth {
|
2024-09-24 11:58:10 +00:00
|
|
|
if ($request_method = OPTIONS) {
|
2024-09-23 14:16:14 +00:00
|
|
|
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;
|
2024-09-23 21:37:25 +00:00
|
|
|
return 200;
|
2024-09-23 14:16:14 +00:00
|
|
|
}
|
2024-09-24 11:58:10 +00:00
|
|
|
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;
|
2024-09-23 14:16:14 +00:00
|
|
|
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;
|
|
|
|
|
2024-09-24 21:28:33 +00:00
|
|
|
proxy_pass http://10.8.0.6:59300;
|
2024-09-23 14:16:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
location /user/ {
|
2024-09-24 11:58:10 +00:00
|
|
|
if ($request_method = OPTIONS) {
|
2024-09-23 14:16:14 +00:00
|
|
|
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;
|
2024-09-23 21:37:25 +00:00
|
|
|
return 200;
|
2024-09-23 14:16:14 +00:00
|
|
|
}
|
2024-09-24 11:58:10 +00:00
|
|
|
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;
|
2024-09-23 14:16:14 +00:00
|
|
|
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;
|
|
|
|
|
2024-09-24 21:30:29 +00:00
|
|
|
proxy_pass http://10.8.0.6:59300;
|
2024-09-23 14:16:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
location /heruvym/v1.0.0/ {
|
2024-09-24 11:58:10 +00:00
|
|
|
if ($request_method = OPTIONS) {
|
2024-09-23 14:16:14 +00:00
|
|
|
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;
|
2024-09-23 21:37:25 +00:00
|
|
|
return 200;
|
2024-09-23 14:16:14 +00:00
|
|
|
}
|
2024-09-24 11:58:10 +00:00
|
|
|
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;
|
2024-09-23 14:16:14 +00:00
|
|
|
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;
|
|
|
|
|
2024-12-04 22:48:11 +00:00
|
|
|
proxy_pass https://10.7.0.6:1487/;
|
2024-09-23 14:16:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-09-24 12:38:53 +00:00
|
|
|
location /strator/ {
|
2024-09-24 11:58:10 +00:00
|
|
|
if ($request_method = OPTIONS) {
|
2024-09-23 14:16:14 +00:00
|
|
|
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;
|
2024-09-23 21:37:25 +00:00
|
|
|
return 200;
|
2024-09-23 14:16:14 +00:00
|
|
|
}
|
2024-09-24 11:58:10 +00:00
|
|
|
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;
|
2024-09-23 14:16:14 +00:00
|
|
|
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:59303/;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
location /customer/v1.0.1/ {
|
2024-09-24 11:58:10 +00:00
|
|
|
if ($request_method = OPTIONS) {
|
2024-09-23 14:16:14 +00:00
|
|
|
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;
|
2024-09-23 21:37:25 +00:00
|
|
|
return 200;
|
2024-09-23 14:16:14 +00:00
|
|
|
}
|
2024-09-24 11:58:10 +00:00
|
|
|
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;
|
2024-09-23 14:16:14 +00:00
|
|
|
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:8067/;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
location /codeword/v1.0.0/ {
|
2024-09-24 11:58:10 +00:00
|
|
|
if ($request_method = OPTIONS) {
|
2024-09-23 14:16:14 +00:00
|
|
|
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;
|
2024-09-23 21:37:25 +00:00
|
|
|
return 200;
|
2024-09-23 14:16:14 +00:00
|
|
|
}
|
2024-09-24 11:58:10 +00:00
|
|
|
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;
|
2024-09-23 14:16:14 +00:00
|
|
|
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:19100/;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-09-24 12:38:53 +00:00
|
|
|
location /treasurer/ {
|
2024-09-24 11:58:10 +00:00
|
|
|
if ($request_method = OPTIONS) {
|
2024-09-23 14:16:14 +00:00
|
|
|
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;
|
2024-09-23 21:37:25 +00:00
|
|
|
return 200;
|
2024-09-23 14:16:14 +00:00
|
|
|
}
|
2024-09-24 11:58:10 +00:00
|
|
|
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;
|
2024-09-23 14:16:14 +00:00
|
|
|
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:8085/;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-09-24 12:38:53 +00:00
|
|
|
location /price/ {
|
2024-09-24 11:58:10 +00:00
|
|
|
if ($request_method = OPTIONS) {
|
2024-09-23 14:16:14 +00:00
|
|
|
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;
|
2024-09-23 21:37:25 +00:00
|
|
|
return 200;
|
2024-09-23 14:16:14 +00:00
|
|
|
}
|
2024-09-24 11:58:10 +00:00
|
|
|
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;
|
2024-09-23 14:16:14 +00:00
|
|
|
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:8001/;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-09-24 12:38:53 +00:00
|
|
|
location /feedback/ {
|
2024-09-24 11:58:10 +00:00
|
|
|
if ($request_method = OPTIONS) {
|
2024-09-23 14:16:14 +00:00
|
|
|
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;
|
2024-09-23 21:37:25 +00:00
|
|
|
return 200;
|
2024-09-23 14:16:14 +00:00
|
|
|
}
|
2024-09-24 11:58:10 +00:00
|
|
|
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;
|
2024-09-23 14:16:14 +00:00
|
|
|
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:8006/;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-09-24 12:38:53 +00:00
|
|
|
location /requestquiz/ {
|
2024-09-24 11:58:10 +00:00
|
|
|
if ($request_method = OPTIONS) {
|
2024-09-23 14:16:14 +00:00
|
|
|
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;
|
2024-09-23 21:37:25 +00:00
|
|
|
return 200;
|
2024-09-23 14:16:14 +00:00
|
|
|
}
|
2024-09-24 11:58:10 +00:00
|
|
|
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;
|
2024-09-23 14:16:14 +00:00
|
|
|
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:8007/;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
location /verification/v1.0.0/ {
|
2024-09-24 11:58:10 +00:00
|
|
|
if ($request_method = OPTIONS) {
|
2024-09-23 14:16:14 +00:00
|
|
|
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;
|
2024-09-23 21:37:25 +00:00
|
|
|
return 200;
|
2024-09-23 14:16:14 +00:00
|
|
|
}
|
2024-09-24 11:58:10 +00:00
|
|
|
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;
|
2024-09-23 14:16:14 +00:00
|
|
|
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.6:7036/;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-09-24 12:38:53 +00:00
|
|
|
location /pena-social-auth-service/ {
|
2024-09-24 11:58:10 +00:00
|
|
|
if ($request_method = OPTIONS) {
|
2024-09-23 14:16:14 +00:00
|
|
|
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;
|
2024-09-23 21:37:25 +00:00
|
|
|
return 200;
|
2024-09-23 14:16:14 +00:00
|
|
|
}
|
2024-09-24 11:58:10 +00:00
|
|
|
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;
|
2024-09-23 14:16:14 +00:00
|
|
|
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/;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-09-24 12:38:53 +00:00
|
|
|
location /cbrfworker-service-staging/ {
|
2024-09-24 11:58:10 +00:00
|
|
|
if ($request_method = OPTIONS) {
|
2024-09-23 14:16:14 +00:00
|
|
|
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;
|
2024-09-23 21:37:25 +00:00
|
|
|
return 200;
|
2024-09-23 14:16:14 +00:00
|
|
|
}
|
2024-09-24 11:58:10 +00:00
|
|
|
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;
|
2024-09-23 14:16:14 +00:00
|
|
|
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/;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-09-24 12:38:53 +00:00
|
|
|
location /squiz-amocrm/ {
|
2024-09-24 11:58:10 +00:00
|
|
|
if ($request_method = OPTIONS) {
|
2024-09-23 14:16:14 +00:00
|
|
|
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;
|
2024-09-23 21:37:25 +00:00
|
|
|
return 200;
|
2024-09-23 14:16:14 +00:00
|
|
|
}
|
2024-09-24 11:58:10 +00:00
|
|
|
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;
|
2024-09-23 14:16:14 +00:00
|
|
|
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/ {
|
2024-09-24 11:58:10 +00:00
|
|
|
if ($request_method = OPTIONS) {
|
2024-09-23 14:16:14 +00:00
|
|
|
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;
|
2024-09-23 21:37:25 +00:00
|
|
|
return 200;
|
2024-09-23 14:16:14 +00:00
|
|
|
}
|
2024-09-24 11:58:10 +00:00
|
|
|
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;
|
2024-09-23 14:16:14 +00:00
|
|
|
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/ {
|
2024-09-24 11:58:10 +00:00
|
|
|
if ($request_method = OPTIONS) {
|
2024-09-23 14:16:14 +00:00
|
|
|
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;
|
2024-09-23 21:37:25 +00:00
|
|
|
return 200;
|
2024-09-23 14:16:14 +00:00
|
|
|
}
|
2024-09-24 11:58:10 +00:00
|
|
|
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;
|
2024-09-23 14:16:14 +00:00
|
|
|
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/;
|
|
|
|
}
|
|
|
|
|
2024-10-13 12:58:25 +00:00
|
|
|
|
|
|
|
location /squiz/bitrix/ {
|
|
|
|
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_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.18:1492/bitrix/;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
location /squiz/bitrix/oauth/ {
|
|
|
|
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_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.18:1492/webhook/create/;
|
|
|
|
}
|
|
|
|
|
2024-09-23 14:16:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
location /answer/v1.0.0/ {
|
2024-09-24 11:58:10 +00:00
|
|
|
if ($request_method = OPTIONS) {
|
2024-09-23 14:16:14 +00:00
|
|
|
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;
|
2024-09-23 21:37:25 +00:00
|
|
|
return 200;
|
2024-09-23 14:16:14 +00:00
|
|
|
}
|
2024-09-24 11:58:10 +00:00
|
|
|
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;
|
2024-09-23 14:16:14 +00:00
|
|
|
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/;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-09-24 12:38:53 +00:00
|
|
|
location /squiz/ {
|
2024-09-24 11:58:10 +00:00
|
|
|
if ($request_method = OPTIONS) {
|
2024-09-23 14:16:14 +00:00
|
|
|
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;
|
2024-09-23 21:37:25 +00:00
|
|
|
return 200;
|
2024-09-23 14:16:14 +00:00
|
|
|
}
|
2024-09-24 11:58:10 +00:00
|
|
|
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;
|
2024-09-23 14:16:14 +00:00
|
|
|
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/ {
|
2024-09-24 11:58:10 +00:00
|
|
|
if ($request_method = OPTIONS) {
|
2024-09-23 14:16:14 +00:00
|
|
|
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;
|
2024-09-23 21:37:25 +00:00
|
|
|
return 200;
|
2024-09-23 14:16:14 +00:00
|
|
|
}
|
2024-09-24 11:58:10 +00:00
|
|
|
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;
|
2024-09-23 14:16:14 +00:00
|
|
|
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) {
|
2024-09-23 21:49:01 +00:00
|
|
|
add_header Access-Control-Allow-Origin $http_origin always;
|
2024-09-23 14:16:14 +00:00
|
|
|
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) {
|
2023-08-29 11:13:01 +00:00
|
|
|
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 always;
|
|
|
|
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
|
2024-04-21 18:39:17 +00:00
|
|
|
proxy_pass http://10.8.0.6:59344;
|
2023-07-01 16:09:00 +00:00
|
|
|
}
|
2023-10-23 14:10:50 +00:00
|
|
|
|
2023-05-07 11:03:39 +00:00
|
|
|
}
|
|
|
|
|
2024-09-23 14:16:14 +00:00
|
|
|
location /404 {
|
|
|
|
try_files $uri $uri/ /index.html;
|
|
|
|
}
|
|
|
|
|
|
|
|
location /robots.txt {
|
|
|
|
if ($host = services.pena.digital) {
|
|
|
|
return 301 https://pena.digital/robots.txt;
|
|
|
|
}
|
|
|
|
try_files $uri $uri/ /index.html;
|
|
|
|
}
|
2023-05-07 11:03:39 +00:00
|
|
|
|
2024-09-23 14:16:14 +00:00
|
|
|
listen [::]:443 ssl ipv6only=on;
|
|
|
|
listen 443 ssl; # managed by Certbot
|
|
|
|
ssl_certificate /etc/nginx/fullchain.pem; # managed by Certbot
|
|
|
|
ssl_certificate_key /etc/nginx/privkey.pem; # managed by Certbot
|
2023-05-07 11:03:39 +00:00
|
|
|
}
|
|
|
|
server {
|
2024-09-23 14:16:14 +00:00
|
|
|
listen 80;
|
|
|
|
listen [::]:80;
|
|
|
|
server_name _;
|
2024-02-11 11:21:38 +00:00
|
|
|
|
2024-09-23 14:16:14 +00:00
|
|
|
location /robots.txt {
|
|
|
|
return 301 https://pena.digital/robots.txt;
|
|
|
|
}
|
2024-02-11 11:21:38 +00:00
|
|
|
|
2024-09-23 14:16:14 +00:00
|
|
|
return 301 https://$host$request_uri;
|
2023-05-07 11:03:39 +00:00
|
|
|
}
|
2024-06-16 19:15:37 +00:00
|
|
|
server {
|
2024-09-23 14:16:14 +00:00
|
|
|
listen 9123;
|
2024-06-16 19:15:37 +00:00
|
|
|
|
2024-09-23 14:16:14 +00:00
|
|
|
server_name stub;
|
2024-06-16 19:15:37 +00:00
|
|
|
|
2024-09-23 14:16:14 +00:00
|
|
|
location /status {
|
|
|
|
stub_status;
|
|
|
|
}
|
2024-06-16 19:15:37 +00:00
|
|
|
}
|
2024-09-23 14:16:14 +00:00
|
|
|
|