2023-05-07 11:03:39 +00:00
|
|
|
server {
|
|
|
|
root /usr/share/nginx/html;
|
|
|
|
|
|
|
|
index index.html index.htm index.nginx-debian.html;
|
|
|
|
server_name _; # managed by Certbot
|
2024-03-02 09:50:56 +00:00
|
|
|
client_max_body_size 100M;# kill cache
|
|
|
|
add_header Last-Modified $date_gmt;
|
|
|
|
add_header Cache-Control 'private no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
|
|
|
|
if_modified_since off;
|
|
|
|
expires off;
|
|
|
|
etag off;
|
2023-05-07 11:52:43 +00:00
|
|
|
|
2024-01-24 00:00:47 +00:00
|
|
|
location /404 {
|
|
|
|
try_files $uri $uri/ /index.html;
|
|
|
|
}
|
|
|
|
|
2024-05-20 13:13:24 +00:00
|
|
|
location /squiz/amocrm/ {
|
2024-04-19 08:52:43 +00:00
|
|
|
|
|
|
|
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;
|
2024-05-20 18:20:14 +00:00
|
|
|
proxy_pass http://10.8.0.5:1491/amocrm/;
|
2024-04-19 08:52:43 +00:00
|
|
|
}
|
|
|
|
|
2023-05-07 11:52:43 +00:00
|
|
|
location /auth {
|
|
|
|
if ($request_method = OPTIONS) {
|
|
|
|
add_header Access-Control-Allow-Origin $http_origin always;
|
|
|
|
add_header Access-Control-Allow-Credentials true always;
|
2024-04-15 19:09:32 +00:00
|
|
|
add_header Access-Control-Allow-Headers content-type,authorization,response-type always;
|
2023-05-07 11:52:43 +00:00
|
|
|
return 200;
|
|
|
|
}
|
2024-01-21 00:19:38 +00:00
|
|
|
if ($host = sadmin.pena) {
|
2024-04-21 18:39:17 +00:00
|
|
|
proxy_pass http://10.8.0.6:59301;
|
2023-05-07 11:52:43 +00:00
|
|
|
}
|
2024-01-21 00:19:38 +00:00
|
|
|
if ($host != sadmin.pena) {
|
2024-04-21 18:39:17 +00:00
|
|
|
proxy_pass http://10.8.0.6:59300;
|
2023-05-07 11:52:43 +00:00
|
|
|
}
|
|
|
|
proxy_hide_header Access-Control-Allow-Origin;
|
|
|
|
add_header Access-Control-Allow-Origin $http_origin always;
|
|
|
|
add_header Access-Control-Allow-Credentials true always;
|
|
|
|
}
|
2023-05-09 18:49:30 +00:00
|
|
|
location /user/ {
|
2023-05-31 16:28:04 +00:00
|
|
|
if ($request_method = OPTIONS) {
|
|
|
|
add_header Access-Control-Allow-Origin $http_origin always;
|
|
|
|
add_header Access-Control-Allow-Credentials true always;
|
2024-04-15 19:09:32 +00:00
|
|
|
add_header Access-Control-Allow-Headers content-type,authorization,response-type always;
|
2023-05-31 16:40:53 +00:00
|
|
|
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
|
2023-05-31 16:28:04 +00:00
|
|
|
return 200;
|
|
|
|
}
|
2023-05-07 19:29:36 +00:00
|
|
|
add_header Access-Control-Allow-Origin $http_origin always;
|
|
|
|
add_header Access-Control-Allow-Credentials true always;
|
2024-04-15 19:09:32 +00:00
|
|
|
add_header Access-Control-Allow-Headers content-type,authorization,response-type always;
|
2023-05-31 16:28:04 +00:00
|
|
|
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:59300;
|
2023-05-07 11:52:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
location /swagger/ {
|
2024-04-21 18:39:17 +00:00
|
|
|
proxy_pass http://10.8.0.6:59300/;
|
2023-05-07 11:52:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
location /heruvym/ {
|
2023-05-11 16:10:17 +00:00
|
|
|
add_header Access-Control-Allow-Origin $http_origin always;
|
2023-05-07 19:29:36 +00:00
|
|
|
add_header Access-Control-Allow-Credentials true always;
|
2024-04-15 19:09:32 +00:00
|
|
|
add_header Access-Control-Allow-Headers content-type,authorization,sess,response-type always;
|
2024-03-11 09:21:35 +00:00
|
|
|
add_header Referrer-Policy unsafe-url always;
|
2023-05-11 16:24:12 +00:00
|
|
|
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
|
2024-03-07 18:44:50 +00:00
|
|
|
proxy_set_header Referer $host;
|
2024-03-07 19:14:42 +00:00
|
|
|
proxy_set_header Origin $http_referer;
|
2023-05-07 11:52:43 +00:00
|
|
|
proxy_set_header Connection '';
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
chunked_transfer_encoding off;
|
|
|
|
proxy_buffering off;
|
|
|
|
proxy_cache off;
|
2024-04-21 18:39:17 +00:00
|
|
|
proxy_pass https://10.8.0.6:1488/;
|
2023-05-07 11:52:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
location /strator/ {
|
2023-06-01 18:37:28 +00:00
|
|
|
if ($request_method = OPTIONS) {
|
|
|
|
add_header Access-Control-Allow-Origin $http_origin always;
|
2023-05-07 19:29:36 +00:00
|
|
|
add_header Access-Control-Allow-Credentials true always;
|
2024-04-15 19:09:32 +00:00
|
|
|
add_header Access-Control-Allow-Headers content-type,authorization,response-type always;
|
2023-06-01 18:37:28 +00:00
|
|
|
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 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:59303/;
|
2023-05-07 11:52:43 +00:00
|
|
|
}
|
2023-06-11 16:42:03 +00:00
|
|
|
|
2023-06-23 15:42:29 +00:00
|
|
|
location /customer/ {
|
|
|
|
if ($request_method = OPTIONS) {
|
|
|
|
add_header Access-Control-Allow-Origin $http_origin always;
|
|
|
|
add_header Access-Control-Allow-Credentials true always;
|
2024-04-15 19:09:32 +00:00
|
|
|
add_header Access-Control-Allow-Headers content-type,authorization,response-type always;
|
2023-06-23 15:42:29 +00:00
|
|
|
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;
|
2024-04-15 19:09:32 +00:00
|
|
|
add_header Access-Control-Allow-Headers content-type,authorization,response-type always;
|
2023-06-23 15:42:29 +00:00
|
|
|
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:8065/;
|
2023-06-23 15:42:29 +00:00
|
|
|
}
|
|
|
|
|
2024-01-18 02:17:30 +00:00
|
|
|
location /codeword/ {
|
|
|
|
if ($request_method = OPTIONS) {
|
|
|
|
add_header Access-Control-Allow-Origin $http_origin always;
|
|
|
|
add_header Access-Control-Allow-Credentials true always;
|
2024-04-15 19:09:32 +00:00
|
|
|
add_header Access-Control-Allow-Headers content-type,authorization,response-type always;
|
2024-01-18 02:17:30 +00:00
|
|
|
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;
|
2024-04-15 19:09:32 +00:00
|
|
|
add_header Access-Control-Allow-Headers content-type,authorization,response-type always;
|
2024-01-18 02:17:30 +00:00
|
|
|
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:59664/;
|
2024-01-18 02:17:30 +00:00
|
|
|
}
|
|
|
|
|
2024-03-15 18:16:27 +00:00
|
|
|
location /treasurer/ {
|
|
|
|
if ($request_method = OPTIONS) {
|
|
|
|
add_header Access-Control-Allow-Origin $http_origin always;
|
|
|
|
add_header Access-Control-Allow-Credentials true always;
|
2024-04-15 19:09:32 +00:00
|
|
|
add_header Access-Control-Allow-Headers content-type,authorization,response-type always;
|
2024-03-15 18:16:27 +00:00
|
|
|
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;
|
2024-04-15 19:09:32 +00:00
|
|
|
add_header Access-Control-Allow-Headers content-type,authorization,response-type always;
|
2024-03-15 18:16:27 +00:00
|
|
|
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:8085/;
|
2024-03-15 18:16:27 +00:00
|
|
|
}
|
|
|
|
|
2023-12-17 10:23:31 +00:00
|
|
|
location /answer/ {
|
2024-02-14 14:52:21 +00:00
|
|
|
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;
|
|
|
|
|
2023-10-22 23:42:58 +00:00
|
|
|
if ($request_method = OPTIONS) {
|
|
|
|
add_header Access-Control-Allow-Origin $http_origin always;
|
|
|
|
add_header Access-Control-Allow-Credentials true always;
|
2024-04-15 19:09:32 +00:00
|
|
|
add_header Access-Control-Allow-Headers content-type,x-sessionkey,device,browser,os,devicetype,response-type always;
|
2024-03-31 10:04:50 +00:00
|
|
|
add_header Access-Control-Expose-Headers x-sessionkey,devicetype always;
|
2023-10-22 23:42:58 +00:00
|
|
|
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
|
|
|
|
return 200;
|
|
|
|
}
|
2024-02-14 10:03:05 +00:00
|
|
|
|
2023-10-22 23:42:58 +00:00
|
|
|
add_header Access-Control-Allow-Origin $http_origin always;
|
|
|
|
add_header Access-Control-Allow-Credentials true always;
|
2024-04-15 19:09:32 +00:00
|
|
|
add_header Access-Control-Allow-Headers content-type,x-sessionkey,device,browser,os,devicetype,response-type always;
|
2024-03-31 10:04:50 +00:00
|
|
|
add_header Access-Control-Expose-Headers x-sessionkey,devicetype always;
|
2023-10-22 23:42:58 +00:00
|
|
|
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
|
2024-04-21 23:41:16 +00:00
|
|
|
proxy_pass http://10.8.0.5:1490/;
|
2023-12-12 09:19:38 +00:00
|
|
|
}
|
|
|
|
|
2023-12-17 10:23:31 +00:00
|
|
|
location /squiz/ {
|
2024-02-14 14:52:21 +00:00
|
|
|
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;
|
|
|
|
|
2023-12-12 09:19:38 +00:00
|
|
|
if ($request_method = OPTIONS) {
|
|
|
|
add_header Access-Control-Allow-Origin $http_origin always;
|
|
|
|
add_header Access-Control-Allow-Credentials true always;
|
2024-04-15 19:09:32 +00:00
|
|
|
add_header Access-Control-Allow-Headers content-type,authorization,device,browser,os,devicetype,response-type always;
|
2023-12-12 09:19:38 +00:00
|
|
|
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
|
|
|
|
return 200;
|
2023-12-12 09:08:13 +00:00
|
|
|
}
|
2023-12-12 09:19:38 +00:00
|
|
|
add_header Access-Control-Allow-Origin $http_origin always;
|
|
|
|
add_header Access-Control-Allow-Credentials true always;
|
2024-04-15 19:09:32 +00:00
|
|
|
add_header Access-Control-Allow-Headers content-type,authorization,device,browser,os,devicetype,response-type always;
|
2023-12-12 09:19:38 +00:00
|
|
|
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
|
2024-04-21 23:41:16 +00:00
|
|
|
proxy_pass http://10.8.0.5:1488/;
|
2023-10-22 23:42:58 +00:00
|
|
|
}
|
2023-10-24 20:53:45 +00:00
|
|
|
|
|
|
|
location /squizstorer/ {
|
|
|
|
if ($request_method = OPTIONS) {
|
|
|
|
add_header Access-Control-Allow-Origin $http_origin always;
|
|
|
|
add_header Access-Control-Allow-Credentials true always;
|
2024-04-15 19:09:32 +00:00
|
|
|
add_header Access-Control-Allow-Headers content-type,authorization,response-type always;
|
2023-10-24 20:53:45 +00:00
|
|
|
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;
|
2024-04-15 19:09:32 +00:00
|
|
|
add_header Access-Control-Allow-Headers content-type,authorization,response-type always;
|
2023-10-24 20:53:45 +00:00
|
|
|
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;
|
2024-04-24 17:06:33 +00:00
|
|
|
proxy_pass http://10.8.0.5:1489/;
|
2023-10-24 20:53:45 +00:00
|
|
|
}
|
2023-10-22 23:42:58 +00:00
|
|
|
|
2023-06-11 16:42:03 +00:00
|
|
|
location /price/ {
|
|
|
|
if ($request_method = OPTIONS) {
|
|
|
|
add_header Access-Control-Allow-Origin $http_origin always;
|
|
|
|
add_header Access-Control-Allow-Credentials true always;
|
2024-04-15 19:09:32 +00:00
|
|
|
add_header Access-Control-Allow-Headers content-type,authorization,response-type always;
|
2023-06-11 16:42:03 +00:00
|
|
|
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;
|
2024-04-15 19:09:32 +00:00
|
|
|
add_header Access-Control-Allow-Headers content-type,authorization,response-type always;
|
2023-06-11 16:42:03 +00:00
|
|
|
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:8001/;
|
2023-06-11 16:42:03 +00:00
|
|
|
}
|
2023-05-07 11:52:43 +00:00
|
|
|
location /feedback/ {
|
2023-05-07 15:07:31 +00:00
|
|
|
if ($request_method = OPTIONS) {
|
|
|
|
add_header Access-Control-Allow-Origin $http_origin always;
|
|
|
|
add_header Access-Control-Allow-Credentials true always;
|
2024-04-15 19:09:32 +00:00
|
|
|
add_header Access-Control-Allow-Headers content-type,response-type always;
|
2023-05-07 15:07:31 +00:00
|
|
|
return 200;
|
|
|
|
}
|
2023-05-07 15:34:30 +00:00
|
|
|
add_header Access-Control-Allow-Origin $http_origin always;
|
|
|
|
add_header Access-Control-Allow-Credentials true always;
|
2024-04-15 19:09:32 +00:00
|
|
|
add_header Access-Control-Allow-Headers content-type,response-type always;
|
2023-05-07 11:52:43 +00:00
|
|
|
proxy_set_header Host $host;
|
2024-01-24 00:00:47 +00:00
|
|
|
proxy_pass http://10.8.0.6:8006/;
|
2023-05-07 11:52:43 +00:00
|
|
|
}
|
2023-07-18 22:03:12 +00:00
|
|
|
location /verification1 {
|
2023-07-07 09:26:55 +00:00
|
|
|
if ($request_method = OPTIONS) {
|
|
|
|
add_header Access-Control-Allow-Origin $http_origin always;
|
|
|
|
add_header Access-Control-Allow-Credentials true always;
|
2024-04-15 19:09:32 +00:00
|
|
|
add_header Access-Control-Allow-Headers content-type,response-type always;
|
2023-07-19 12:24:29 +00:00
|
|
|
add_header Access-Control-Allow-Methods GET;
|
|
|
|
|
2023-07-07 09:26:55 +00:00
|
|
|
return 200;
|
|
|
|
}
|
2023-07-03 12:08:47 +00:00
|
|
|
add_header Access-Control-Allow-Origin $http_origin always;
|
|
|
|
add_header Access-Control-Allow-Credentials true always;
|
2024-04-15 19:09:32 +00:00
|
|
|
add_header Access-Control-Allow-Headers content-type,response-type always;
|
2023-07-19 12:24:29 +00:00
|
|
|
add_header Access-Control-Allow-Methods GET;
|
2023-07-18 22:03:12 +00:00
|
|
|
chunked_transfer_encoding off;
|
|
|
|
proxy_buffering off;
|
|
|
|
proxy_cache off;
|
|
|
|
proxy_pass https://storage.yandexcloud.net;
|
|
|
|
}
|
2023-11-28 20:38:21 +00:00
|
|
|
location /squizimages {
|
|
|
|
if ($request_method = OPTIONS) {
|
|
|
|
add_header Access-Control-Allow-Origin $http_origin always;
|
|
|
|
add_header Access-Control-Allow-Credentials true always;
|
2024-04-15 19:09:32 +00:00
|
|
|
add_header Access-Control-Allow-Headers content-type,response-type always;
|
2023-11-28 20:38:21 +00:00
|
|
|
add_header Access-Control-Allow-Methods GET;
|
|
|
|
|
|
|
|
return 200;
|
|
|
|
}
|
|
|
|
add_header Access-Control-Allow-Origin $http_origin always;
|
|
|
|
add_header Access-Control-Allow-Credentials true always;
|
2024-04-15 19:09:32 +00:00
|
|
|
add_header Access-Control-Allow-Headers content-type,response-type always;
|
2023-11-28 20:38:21 +00:00
|
|
|
add_header Access-Control-Allow-Methods GET;
|
|
|
|
chunked_transfer_encoding off;
|
|
|
|
proxy_buffering off;
|
|
|
|
proxy_cache off;
|
|
|
|
proxy_pass https://storage.yandexcloud.net;
|
|
|
|
}
|
2024-05-18 12:40:16 +00:00
|
|
|
|
2024-05-18 21:01:39 +00:00
|
|
|
location /verification/ {
|
|
|
|
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.6:7035/;
|
|
|
|
}
|
|
|
|
location /verification/v1.0.0/ {
|
2023-07-18 22:03:12 +00:00
|
|
|
if ($request_method = OPTIONS) {
|
|
|
|
add_header Access-Control-Allow-Origin $http_origin always;
|
|
|
|
add_header Access-Control-Allow-Credentials true always;
|
2024-04-15 19:09:32 +00:00
|
|
|
add_header Access-Control-Allow-Headers content-type,authorization,response-type always;
|
2023-07-19 12:24:29 +00:00
|
|
|
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
|
2023-07-18 22:03:12 +00:00
|
|
|
return 200;
|
|
|
|
}
|
|
|
|
add_header Access-Control-Allow-Origin $http_origin always;
|
|
|
|
add_header Access-Control-Allow-Credentials true always;
|
2024-04-15 19:09:32 +00:00
|
|
|
add_header Access-Control-Allow-Headers content-type,authorization,response-type always;
|
2023-07-19 12:24:29 +00:00
|
|
|
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
|
2023-07-03 12:08:47 +00:00
|
|
|
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;
|
2024-05-18 21:01:39 +00:00
|
|
|
|
|
|
|
proxy_pass http://10.8.0.6:7036/;
|
2023-07-03 12:08:47 +00:00
|
|
|
}
|
2023-05-07 11:52:43 +00:00
|
|
|
|
2023-05-07 11:03:39 +00:00
|
|
|
location / {
|
2024-01-17 14:37:20 +00:00
|
|
|
if ($host = shub.pena.digital) {
|
2023-05-07 11:03:39 +00:00
|
|
|
proxy_pass http://hub;
|
|
|
|
}
|
2024-01-17 14:37:20 +00:00
|
|
|
if ($host = sdocs.pena.digital) {
|
2023-05-07 11:03:39 +00:00
|
|
|
proxy_pass http://docs;
|
2023-05-07 11:52:43 +00:00
|
|
|
}
|
|
|
|
if ($host = services.pena.digital) {
|
|
|
|
proxy_pass http://services;
|
|
|
|
}
|
2024-01-17 14:37:20 +00:00
|
|
|
if ($host = slinks.pena.digital) {
|
2023-05-07 11:52:43 +00:00
|
|
|
proxy_pass http://dwarfener;
|
|
|
|
}
|
2024-01-17 14:37:20 +00:00
|
|
|
if ($host = smetrica.pena.digital) {
|
2023-09-09 21:21:01 +00:00
|
|
|
proxy_pass http://metrica;
|
|
|
|
}
|
2024-01-17 14:37:20 +00:00
|
|
|
if ($host = s.hbpn.link) {
|
2024-02-02 10:02:11 +00:00
|
|
|
add_header Access-Control-Allow-Origin $http_origin always;
|
2023-12-18 00:15:37 +00:00
|
|
|
proxy_pass http://respondent;
|
|
|
|
}
|
2024-01-17 14:37:20 +00:00
|
|
|
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
|
|
|
|
|
|
|
if ($host = newerait.pena.digital) {
|
2023-12-12 14:23:30 +00:00
|
|
|
proxy_pass http://squizlanding;
|
2023-10-23 14:10:50 +00:00
|
|
|
}
|
2023-07-01 16:09:00 +00:00
|
|
|
if ($host = squiz.pena.digital) {
|
|
|
|
proxy_pass http://squiz;
|
2023-05-07 11:03:39 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-02-11 11:21:38 +00:00
|
|
|
location /robots.txt {
|
|
|
|
if ($host = services,pena.digital) {
|
|
|
|
return 301 https://pena.digital/robots.txt;
|
|
|
|
}
|
|
|
|
try_files $uri $uri/ /index.html;
|
|
|
|
}
|
|
|
|
|
2024-01-21 00:19:38 +00:00
|
|
|
listen [::]:443 ssl ipv6only=on;
|
2023-05-07 11:03:39 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
}
|
|
|
|
server {
|
|
|
|
listen 80 ;
|
|
|
|
listen [::]:80 ;
|
|
|
|
server_name _;
|
2024-02-14 14:14:28 +00:00
|
|
|
client_max_body_size 100M;
|
2024-02-11 11:21:38 +00:00
|
|
|
|
|
|
|
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
|
|
|
return 301 https://$host$request_uri;
|
|
|
|
}
|