nginx-proxy/default.conf

1210 lines
45 KiB
Plaintext
Raw Normal View History

2023-05-07 11:03:39 +00:00
server {
2025-03-23 23:41:47 +00:00
resolver 10.89.1.1 valid=10s;
2025-03-26 21:53:33 +00:00
proxy_pass_request_headers on;
proxy_ssl_server_name on;
2023-05-07 11:03:39 +00:00
root /usr/share/nginx/html;
2024-02-11 10:34:35 +00:00
location /robots.txt {
try_files $uri $uri/ /index.html;
}
2023-05-07 11:03:39 +00:00
2024-01-30 22:24:58 +00:00
index index.html index.htm index.nginx-debian.html;
2024-08-15 19:26:39 +00:00
server_name hbpn.link www.hbpn.link; # managed by Certbot
2024-01-30 22:24:58 +00:00
client_max_body_size 70M;
2024-04-17 03:32:12 +00:00
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;
2024-01-30 22:24:58 +00:00
location /404 {
try_files $uri $uri/ /index.html;
}
2024-12-17 22:39:45 +00:00
2024-01-30 22:24:58 +00:00
location /answer/ {
2024-04-19 13:22:34 +00:00
if ($request_method = OPTIONS) {
2024-04-19 13:28:02 +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-Expose-Headers x-sessionkey,devicetype always;
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
2024-04-19 13:22:34 +00:00
return 200;
}
2024-04-19 09:41:01 +00:00
add_header Access-Control-Allow-Origin $http_origin always;
2024-01-30 22:24:58 +00:00
add_header Access-Control-Allow-Credentials true always;
2024-04-19 13:28:02 +00:00
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;
2024-01-30 22:24:58 +00:00
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
2024-04-19 13:28:02 +00:00
2024-01-30 22:24:58 +00:00
proxy_pass http://10.8.0.9:1490/;
}
2024-07-15 10:03:42 +00:00
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;
2025-03-19 23:41:31 +00:00
proxy_pass http://10.8.0.12:1491/;
2024-07-15 10:03:42 +00:00
}
2024-01-30 22:24:58 +00:00
location / {
2024-04-19 09:41: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 always;
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PUT;
2025-03-26 22:18:47 +00:00
set $backend "respondent";
proxy_pass http://$backend;
2024-01-30 22:24:58 +00:00
}
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/nginx/certs/live/pena.digital/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/nginx/certs/live/pena.digital/privkey.pem; # managed by Certbot
}
server {
2025-03-23 23:41:47 +00:00
resolver 10.89.1.1 valid=10s;
2025-03-26 21:53:33 +00:00
proxy_pass_request_headers on;
proxy_ssl_server_name on;
2024-01-30 22:24:58 +00:00
root /usr/share/nginx/html;
2024-02-11 10:34:35 +00:00
location /robots.txt {
try_files $uri $uri/ /index.html;
}
2024-01-30 22:24:58 +00:00
2023-05-07 11:03:39 +00:00
index index.html index.htm index.nginx-debian.html;
server_name quiz.pena.digital; # managed by Certbot
2024-01-04 13:44:34 +00:00
client_max_body_size 70M;
2023-05-07 11:52:43 +00:00
2024-04-17 03:32:12 +00:00
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;
2024-01-24 00:23:44 +00:00
location /404 {
try_files $uri $uri/ /index.html;
}
2023-05-07 11:52:43 +00:00
2024-01-30 15:07:49 +00:00
location /auth {
proxy_hide_header Access-Control-Allow-Origin;
add_header Access-Control-Allow-Origin quiz.pena.digital always;
add_header Access-Control-Allow-Credentials true always;
2024-04-17 03:32:12 +00:00
add_header Access-Control-Allow-Headers content-type,authorization,response-type always;
2025-03-16 21:26:48 +00:00
proxy_pass http://10.8.0.226:59300;
2024-01-30 15:07:49 +00:00
}
location /user/ {
add_header Access-Control-Allow-Origin quiz.pena.digital always;
add_header Access-Control-Allow-Credentials true always;
2024-04-17 03:32:12 +00:00
add_header Access-Control-Allow-Headers content-type,authorization,response-type always;
2024-01-30 15:07:49 +00:00
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
2025-03-16 21:26:48 +00:00
proxy_pass http://10.8.0.226:59300;
2024-01-30 15:07:49 +00:00
}
location /heruvym/ {
add_header Access-Control-Allow-Origin quiz.pena.digital always;
add_header Access-Control-Allow-Credentials true always;
2024-04-17 03:32:12 +00:00
add_header Access-Control-Allow-Headers content-type,authorization,sess,response-type always;
2024-01-30 15:07:49 +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;
2025-03-14 23:24:31 +00:00
proxy_pass http://10.8.0.226:1488/;
2024-01-30 15:07:49 +00:00
}
2024-07-15 10:03:42 +00:00
location /heruvym/v1.0.0/ {
add_header Access-Control-Allow-Origin quiz.pena.digital 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-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;
2025-03-14 23:24:31 +00:00
proxy_pass http://10.8.0.226:1487/;
2024-07-15 10:03:42 +00:00
}
2024-01-30 15:07:49 +00:00
location /strator/ {
add_header Access-Control-Allow-Origin quiz.pena.digital always;
add_header Access-Control-Allow-Credentials true always;
2024-04-17 03:32:12 +00:00
add_header Access-Control-Allow-Headers content-type,authorization,response-type always;
2024-01-30 15:07:49 +00:00
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
2025-03-18 19:54:02 +00:00
proxy_pass http://10.8.0.226:59303/;
2024-01-30 15:07:49 +00:00
}
location /customer/ {
add_header Access-Control-Allow-Origin quiz.pena.digital always;
add_header Access-Control-Allow-Credentials true always;
2024-04-17 03:32:12 +00:00
add_header Access-Control-Allow-Headers content-type,authorization,response-type always;
2024-01-30 15:07:49 +00:00
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
2025-03-19 15:49:28 +00:00
proxy_pass http://10.8.0.226:8065/;
2024-01-30 15:07:49 +00:00
}
2025-03-19 15:49:28 +00:00
location /customer/v1.0.0/ {
2024-07-15 10:03:42 +00:00
add_header Access-Control-Allow-Origin quiz.pena.digital 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 X-Real-IP $remote_addr;
proxy_set_header X-Client-Port $remote_port;
proxy_set_header Origin $host;
2025-03-19 15:49:28 +00:00
proxy_pass http://10.8.0.226:8065/;
2024-07-15 10:03:42 +00:00
}
2025-03-19 19:25:51 +00:00
location /customer/v1.0.1/ {
add_header Access-Control-Allow-Origin quiz.pena.digital 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 X-Real-IP $remote_addr;
proxy_set_header X-Client-Port $remote_port;
proxy_set_header Origin $host;
proxy_pass http://10.8.0.226:8065/;
}
2024-01-30 15:07:49 +00:00
location /codeword/ {
add_header Access-Control-Allow-Origin quiz.pena.digital always;
add_header Access-Control-Allow-Credentials true always;
2024-04-17 03:32:12 +00:00
add_header Access-Control-Allow-Headers content-type,authorization,response-type always;
2024-01-30 15:07:49 +00:00
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
2024-07-20 13:05:39 +00:00
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Client-Port $remote_port;
proxy_set_header Origin $host;
2025-03-23 23:41:47 +00:00
proxy_set_header Referer $host;
2025-03-22 19:40:36 +00:00
proxy_pass http://10.8.0.226:19100/;
2024-01-30 15:07:49 +00:00
}
2024-07-15 10:03:42 +00:00
location /codeword/v1.0.0/ {
add_header Access-Control-Allow-Origin quiz.pena.digital 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 X-Real-IP $remote_addr;
proxy_set_header X-Client-Port $remote_port;
2025-03-23 23:41:47 +00:00
proxy_set_header Referer $host;
2024-07-15 10:03:42 +00:00
proxy_set_header Origin $host;
2025-03-22 19:40:36 +00:00
proxy_pass http://10.8.0.226:19100/;
2024-07-15 10:03:42 +00:00
}
2024-01-30 15:07:49 +00:00
location /price/ {
add_header Access-Control-Allow-Origin quiz.pena.digital always;
add_header Access-Control-Allow-Credentials true always;
2024-04-17 03:32:12 +00:00
add_header Access-Control-Allow-Headers content-type,authorization,response-type always;
2024-01-30 15:07:49 +00:00
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
2025-03-18 15:36:05 +00:00
proxy_pass http://10.8.0.226:8001/;
2024-01-30 15:07:49 +00:00
}
location /answer/ {
add_header Access-Control-Allow-Origin quiz.pena.digital always;
add_header Access-Control-Allow-Credentials true always;
2024-04-17 03:32:12 +00:00
add_header Access-Control-Allow-Headers content-type,x-sessionkey,response-type always;
2024-01-30 15:07:49 +00:00
add_header Access-Control-Expose-Headers x-sessionkey always;
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
proxy_pass http://10.8.0.9:1490/;
}
2024-07-15 10:03:42 +00:00
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;
2025-03-19 23:41:31 +00:00
proxy_pass http://10.8.0.12:1491/;
2024-07-15 10:03:42 +00:00
}
location /squiz/amocrm/ {
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) {
return 200;
}
2025-03-19 23:41:31 +00:00
proxy_pass http://10.8.0.12:1492/amocrm/;
2024-07-15 10:03:42 +00:00
}
location /squiz/amocrm/oauth/ {
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;
2025-03-19 23:41:31 +00:00
proxy_pass http://10.8.0.12:1492/webhook/create/;
2024-07-15 10:03:42 +00:00
}
2024-01-30 15:07:49 +00:00
location /squiz/ {
add_header Access-Control-Allow-Origin quiz.pena.digital always;
add_header Access-Control-Allow-Credentials true always;
2024-04-17 03:32:12 +00:00
add_header Access-Control-Allow-Headers content-type,authorization,response-type always;
2024-01-30 15:07:49 +00:00
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
2025-03-19 23:41:31 +00:00
proxy_pass http://10.8.0.12:1488/;
2024-01-30 15:07:49 +00:00
}
location /squizstorer/ {
add_header Access-Control-Allow-Origin quiz.pena.digital always;
add_header Access-Control-Allow-Credentials true always;
2024-04-17 03:32:12 +00:00
add_header Access-Control-Allow-Headers content-type,authorization,response-type always;
2024-01-30 15:07:49 +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;
2025-03-19 23:41:31 +00:00
proxy_pass http://10.8.0.12:1489/;
2024-01-30 15:07:49 +00:00
}
2024-07-15 10:03:42 +00:00
location /squizstorer/v1.0.0/ {
add_header Access-Control-Allow-Origin quiz.pena.digital 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_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;
2025-03-19 23:41:31 +00:00
proxy_pass http://10.8.0.12:1589/;
2024-07-15 10:03:42 +00:00
}
2024-01-30 15:07:49 +00:00
2023-05-07 11:03:39 +00:00
location / {
2025-03-26 22:18:47 +00:00
set $backend "squiz";
proxy_pass http://$backend;
}
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/nginx/certs/live/pena.digital/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/nginx/certs/live/pena.digital/privkey.pem; # managed by Certbot
2024-01-29 23:59:03 +00:00
2024-05-07 18:13:50 +00:00
}
server {
2025-03-23 23:41:47 +00:00
resolver 10.89.1.1 valid=10s;
2025-03-26 21:53:33 +00:00
proxy_pass_request_headers on;
proxy_ssl_server_name on;
2025-03-23 23:41:47 +00:00
2024-05-07 18:13:50 +00:00
root /usr/share/nginx/html;
location /robots.txt {
try_files $uri $uri/ /index.html;
}
index index.html index.htm index.nginx-debian.html;
2024-08-15 19:26:39 +00:00
server_name penaquiz.online www.penaquiz.online; # managed by Certbot
2024-05-07 18:13:50 +00:00
client_max_body_size 70M;
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;
location /404 {
try_files $uri $uri/ /index.html;
}
location /auth {
proxy_hide_header Access-Control-Allow-Origin;
add_header Access-Control-Allow-Origin penaquiz.online always;
add_header Access-Control-Allow-Credentials true always;
add_header Access-Control-Allow-Headers content-type,authorization,response-type always;
2025-03-16 21:26:48 +00:00
proxy_pass http://10.8.0.226:59300;
2024-05-07 18:13:50 +00:00
}
location /user/ {
add_header Access-Control-Allow-Origin penaquiz.online 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;
2025-03-16 21:26:48 +00:00
proxy_pass http://10.8.0.226:59300;
2024-05-07 18:13:50 +00:00
}
location /heruvym/ {
add_header Access-Control-Allow-Origin penaquiz.online 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-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;
2025-03-14 23:24:31 +00:00
proxy_pass http://10.8.0.226:1488/;
2024-05-07 18:13:50 +00:00
}
2024-07-15 10:03:42 +00:00
location /heruvym/v1.0.0/ {
add_header Access-Control-Allow-Origin quiz.pena.digital 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-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
proxy_set_header Referer $host;
proxy_set_header Origin $http_origin;
proxy_set_header Connection '';
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;
2025-03-14 23:24:31 +00:00
proxy_pass http://10.8.0.226:1487/;
2024-07-15 10:03:42 +00:00
}
2024-05-07 18:13:50 +00:00
location /strator/ {
add_header Access-Control-Allow-Origin penaquiz.online 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;
2025-03-18 19:54:02 +00:00
proxy_pass http://10.8.0.226:59303/;
2024-05-07 18:13:50 +00:00
}
location /customer/ {
add_header Access-Control-Allow-Origin penaquiz.online 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;
2025-03-19 15:49:28 +00:00
proxy_pass http://10.8.0.226:8065/;
2024-05-07 18:13:50 +00:00
}
2025-03-19 15:49:28 +00:00
location /customer/v1.0.0/ {
2024-07-15 10:03:42 +00:00
add_header Access-Control-Allow-Origin quiz.pena.digital 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 X-Real-IP $remote_addr;
proxy_set_header X-Client-Port $remote_port;
proxy_set_header Origin $host;
2025-03-19 15:49:28 +00:00
proxy_pass http://10.8.0.226:8065/;
2024-07-15 10:03:42 +00:00
}
2025-03-19 19:25:51 +00:00
location /customer/v1.0.1/ {
add_header Access-Control-Allow-Origin quiz.pena.digital 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 X-Real-IP $remote_addr;
proxy_set_header X-Client-Port $remote_port;
proxy_set_header Origin $host;
proxy_pass http://10.8.0.226:8065/;
}
2024-05-07 18:13:50 +00:00
location /codeword/ {
add_header Access-Control-Allow-Origin penaquiz.online 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-07-20 13:05:39 +00:00
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Client-Port $remote_port;
2025-03-23 23:41:47 +00:00
proxy_set_header Referer $host;
2024-07-20 13:05:39 +00:00
proxy_set_header Origin $host;
2025-03-22 19:40:36 +00:00
proxy_pass http://10.8.0.226:19100/;
2024-05-07 18:13:50 +00:00
}
2024-07-15 10:03:42 +00:00
location /codeword/v1.0.0/ {
add_header Access-Control-Allow-Origin quiz.pena.digital 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 X-Real-IP $remote_addr;
proxy_set_header X-Client-Port $remote_port;
proxy_set_header Origin $host;
2025-03-23 23:41:47 +00:00
proxy_set_header Referer $host;
2025-03-22 19:40:36 +00:00
proxy_pass http://10.8.0.226:19100/;
2024-07-15 10:03:42 +00:00
}
2024-05-07 18:13:50 +00:00
location /price/ {
add_header Access-Control-Allow-Origin penaquiz.online 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;
2025-03-18 15:36:05 +00:00
proxy_pass http://10.8.0.226:8001/;
2024-05-07 18:13:50 +00:00
}
location /answer/ {
add_header Access-Control-Allow-Origin penaquiz.online always;
add_header Access-Control-Allow-Credentials true always;
add_header Access-Control-Allow-Headers content-type,x-sessionkey,response-type always;
add_header Access-Control-Expose-Headers x-sessionkey always;
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
proxy_pass http://10.8.0.9:1490/;
}
2024-07-15 10:03:42 +00:00
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;
2025-03-19 23:41:31 +00:00
proxy_pass http://10.8.0.12:1491/;
2024-07-15 10:03:42 +00:00
}
location /squiz/amocrm/ {
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) {
return 200;
}
2025-03-19 23:41:31 +00:00
proxy_pass http://10.8.0.12:1492/amocrm/;
2024-07-15 10:03:42 +00:00
}
location /squiz/amocrm/oauth/ {
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;
2025-03-19 23:41:31 +00:00
proxy_pass http://10.8.0.12:1492/webhook/create/;
2024-07-15 10:03:42 +00:00
}
2024-05-07 18:13:50 +00:00
location /squiz/ {
add_header Access-Control-Allow-Origin penaquiz.online 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;
2025-03-19 23:41:31 +00:00
proxy_pass http://10.8.0.12:1488/;
2024-05-07 18:13:50 +00:00
}
location /squizstorer/ {
add_header Access-Control-Allow-Origin penaquiz.online 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;
2025-03-19 23:41:31 +00:00
proxy_pass http://10.8.0.12:1489/;
2024-05-07 18:13:50 +00:00
}
2024-07-15 10:03:42 +00:00
location /squizstorer/v1.0.0/ {
add_header Access-Control-Allow-Origin quiz.pena.digital 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_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;
2025-03-19 23:41:31 +00:00
proxy_pass http://10.8.0.12:1589/;
2024-07-15 10:03:42 +00:00
}
2024-05-07 18:13:50 +00:00
location / {
2025-03-26 22:18:47 +00:00
set $backend "squiz";
proxy_pass http://$backend;
2024-05-07 18:13:50 +00:00
}
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/nginx/certs/live/pena.digital/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/nginx/certs/live/pena.digital/privkey.pem; # managed by Certbot
}
server {
root /usr/share/nginx/html;
2025-03-23 23:41:47 +00:00
resolver 10.89.1.1 valid=10s;
2025-03-26 21:53:33 +00:00
proxy_pass_request_headers on;
proxy_ssl_server_name on;
2025-03-23 23:41:47 +00:00
2024-05-07 18:13:50 +00:00
location /robots.txt {
try_files $uri $uri/ /index.html;
}
index index.html index.htm index.nginx-debian.html;
2024-08-15 19:26:39 +00:00
server_name penaquiz.ru www.penaquiz.ru; # managed by Certbot
2024-05-07 18:13:50 +00:00
client_max_body_size 70M;
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;
location /404 {
try_files $uri $uri/ /index.html;
}
location /auth {
proxy_hide_header Access-Control-Allow-Origin;
add_header Access-Control-Allow-Origin penaquiz.ru always;
add_header Access-Control-Allow-Credentials true always;
add_header Access-Control-Allow-Headers content-type,authorization,response-type always;
2025-03-16 21:26:48 +00:00
proxy_pass http://10.8.0.226:59300;
2024-05-07 18:13:50 +00:00
}
location /user/ {
add_header Access-Control-Allow-Origin penaquiz.ru 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;
2025-03-16 21:26:48 +00:00
proxy_pass http://10.8.0.226:59300;
2024-05-07 18:13:50 +00:00
}
location /heruvym/ {
add_header Access-Control-Allow-Origin penaquiz.ru 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-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;
2025-03-14 23:24:31 +00:00
proxy_pass http://10.8.0.226:1488/;
2024-05-07 18:13:50 +00:00
}
2024-07-15 10:03:42 +00:00
location /heruvym/v1.0.0/ {
add_header Access-Control-Allow-Origin quiz.pena.digital 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-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;
2025-03-14 23:24:31 +00:00
proxy_pass http://10.8.0.226:1487/;
2024-07-15 10:03:42 +00:00
}
2024-05-07 18:13:50 +00:00
location /strator/ {
add_header Access-Control-Allow-Origin penaquiz.ru 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;
2025-03-18 19:54:02 +00:00
proxy_pass http://10.8.0.226:59303/;
2024-05-07 18:13:50 +00:00
}
location /customer/ {
add_header Access-Control-Allow-Origin penaquiz.ru 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;
2025-03-19 15:49:28 +00:00
proxy_pass http://10.8.0.226:8065/;
2024-05-07 18:13:50 +00:00
}
2025-03-19 15:49:28 +00:00
location /customer/v1.0.0/ {
2024-07-15 10:03:42 +00:00
add_header Access-Control-Allow-Origin quiz.pena.digital 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 X-Real-IP $remote_addr;
proxy_set_header X-Client-Port $remote_port;
proxy_set_header Origin $host;
2025-03-19 15:49:28 +00:00
proxy_pass http://10.8.0.226:8065/;
2024-07-15 10:03:42 +00:00
}
2025-03-19 19:25:51 +00:00
location /customer/v1.0.1/ {
add_header Access-Control-Allow-Origin quiz.pena.digital 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 X-Real-IP $remote_addr;
proxy_set_header X-Client-Port $remote_port;
proxy_set_header Origin $host;
proxy_pass http://10.8.0.226:8065/;
}
2024-05-07 18:13:50 +00:00
location /codeword/ {
add_header Access-Control-Allow-Origin penaquiz.ru 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;
2025-03-23 23:41:47 +00:00
proxy_set_header Referer $host;
2024-07-20 13:05:39 +00:00
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Client-Port $remote_port;
proxy_set_header Origin $host;
2025-03-22 19:40:36 +00:00
proxy_pass http://10.8.0.226:19100/;
2024-05-07 18:13:50 +00:00
}
2024-07-15 10:03:42 +00:00
location /codeword/v1.0.0/ {
add_header Access-Control-Allow-Origin quiz.pena.digital 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 X-Real-IP $remote_addr;
2025-03-23 23:41:47 +00:00
proxy_set_header Referer $host;
2024-07-15 10:03:42 +00:00
proxy_set_header X-Client-Port $remote_port;
proxy_set_header Origin $host;
2025-03-22 19:40:36 +00:00
proxy_pass http://10.8.0.226:19100/;
2024-07-15 10:03:42 +00:00
}
2024-05-07 18:13:50 +00:00
location /price/ {
add_header Access-Control-Allow-Origin penaquiz.ru 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;
2025-03-18 15:36:05 +00:00
proxy_pass http://10.8.0.226:8001/;
2024-05-07 18:13:50 +00:00
}
location /answer/ {
add_header Access-Control-Allow-Origin penaquiz.ru always;
add_header Access-Control-Allow-Credentials true always;
add_header Access-Control-Allow-Headers content-type,x-sessionkey,response-type always;
add_header Access-Control-Expose-Headers x-sessionkey always;
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
proxy_pass http://10.8.0.9:1490/;
}
2024-07-15 10:03:42 +00:00
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;
2024-05-07 18:13:50 +00:00
2024-07-15 10:03:42 +00:00
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;
2025-03-19 23:41:31 +00:00
proxy_pass http://10.8.0.12:1491/;
2024-07-15 10:03:42 +00:00
}
location /squiz/amocrm/ {
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) {
return 200;
}
2025-03-19 23:41:31 +00:00
proxy_pass http://10.8.0.12:1492/amocrm/;
2024-07-15 10:03:42 +00:00
}
location /squiz/amocrm/oauth/ {
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;
2025-03-19 23:41:31 +00:00
proxy_pass http://10.8.0.12:1492/webhook/create/;
2024-07-15 10:03:42 +00:00
}
2024-05-07 18:13:50 +00:00
location /squiz/ {
add_header Access-Control-Allow-Origin penaquiz.ru 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;
2025-03-19 23:41:31 +00:00
proxy_pass http://10.8.0.12:1488/;
2024-05-07 18:13:50 +00:00
}
location /squizstorer/ {
add_header Access-Control-Allow-Origin penaquiz.ru 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;
2025-03-19 23:41:31 +00:00
proxy_pass http://10.8.0.12:1489/;
2024-05-07 18:13:50 +00:00
}
2024-07-15 10:03:42 +00:00
location /squizstorer/v1.0.0/ {
add_header Access-Control-Allow-Origin quiz.pena.digital 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_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;
2025-03-19 23:41:31 +00:00
proxy_pass http://10.8.0.12:1589/;
2024-07-15 10:03:42 +00:00
}
2024-05-07 18:13:50 +00:00
location / {
2025-03-26 22:18:47 +00:00
set $backend "squiz";
proxy_pass http://$backend;
2024-05-07 18:13:50 +00:00
}
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/nginx/certs/live/pena.digital/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/nginx/certs/live/pena.digital/privkey.pem; # managed by Certbot
2024-01-29 23:59:03 +00:00
}
server {
root /usr/share/nginx/html;
index index.html index.htm index.nginx-debian.html;
server_name hub.pena.digital; # managed by Certbot
2025-03-28 14:04:58 +00:00
resolver 10.89.1.1 valid=10s;
2024-01-29 23:59:03 +00:00
client_max_body_size 70M;
2024-02-11 10:34:35 +00:00
location /robots.txt {
try_files $uri $uri/ /index.html;
}
2024-01-29 23:59:03 +00:00
2024-04-17 03:32:12 +00:00
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;
2024-01-29 23:59:03 +00:00
location /404 {
try_files $uri $uri/ /index.html;
}
location / {
2025-03-26 21:53:33 +00:00
set $backend "hub";
proxy_pass http://$backend;
2024-01-29 23:59:03 +00:00
}
2024-04-17 12:10:31 +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;
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;
2025-03-19 15:49:28 +00:00
proxy_pass http://10.8.0.226:8085/;
2024-04-17 12:10:31 +00:00
}
2024-01-29 23:59:03 +00:00
location /auth {
proxy_hide_header Access-Control-Allow-Origin;
add_header Access-Control-Allow-Origin hub.pena.digital always;
add_header Access-Control-Allow-Credentials true always;
2025-03-16 21:26:48 +00:00
proxy_pass http://10.8.0.226:59300;
2024-01-29 23:59:03 +00:00
}
location /user/ {
add_header Access-Control-Allow-Origin hub.pena.digital always;
add_header Access-Control-Allow-Credentials true always;
2024-04-17 03:32:12 +00:00
add_header Access-Control-Allow-Headers content-type,authorization,response-type always;
2024-01-29 23:59:03 +00:00
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
2025-03-16 21:26:48 +00:00
proxy_pass http://10.8.0.226:59300;
2024-01-29 23:59:03 +00:00
}
location /heruvym/ {
add_header Access-Control-Allow-Origin hub.pena.digital always;
add_header Access-Control-Allow-Credentials true always;
2024-04-17 03:32:12 +00:00
add_header Access-Control-Allow-Headers content-type,authorization,sess,response-type always;
2024-01-29 23:59:03 +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;
2025-03-14 23:24:31 +00:00
proxy_pass http://10.8.0.226:1488/;
2024-01-29 23:59:03 +00:00
}
2024-07-15 10:03:42 +00:00
location /heruvym/v1.0.0/ {
add_header Access-Control-Allow-Origin quiz.pena.digital 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-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;
2025-03-14 23:24:31 +00:00
proxy_pass http://10.8.0.226:1487/;
2024-07-15 10:03:42 +00:00
}
2024-01-29 23:59:03 +00:00
location /strator/ {
add_header Access-Control-Allow-Origin hub.pena.digital always;
add_header Access-Control-Allow-Credentials true always;
2024-04-17 03:32:12 +00:00
add_header Access-Control-Allow-Headers content-type,authorization,response-type always;
2024-01-29 23:59:03 +00:00
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
2025-03-18 19:54:02 +00:00
proxy_pass http://10.8.0.226:59303/;
2024-01-29 23:59:03 +00:00
}
location /customer/ {
add_header Access-Control-Allow-Origin hub.pena.digital always;
add_header Access-Control-Allow-Credentials true always;
2024-04-17 03:32:12 +00:00
add_header Access-Control-Allow-Headers content-type,authorization,response-type always;
2024-01-29 23:59:03 +00:00
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
2025-03-19 15:49:28 +00:00
proxy_pass http://10.8.0.226:8065/;
2024-01-29 23:59:03 +00:00
}
2025-03-19 15:49:28 +00:00
location /customer/v1.0.0/ {
2024-07-15 10:03:42 +00:00
add_header Access-Control-Allow-Origin quiz.pena.digital 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 X-Real-IP $remote_addr;
proxy_set_header X-Client-Port $remote_port;
proxy_set_header Origin $host;
2025-03-19 15:49:28 +00:00
proxy_pass http://10.8.0.226:8065/;
2024-07-15 10:03:42 +00:00
}
2025-03-19 19:25:51 +00:00
location /customer/v1.0.1/ {
add_header Access-Control-Allow-Origin quiz.pena.digital 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 X-Real-IP $remote_addr;
proxy_set_header X-Client-Port $remote_port;
proxy_set_header Origin $host;
proxy_pass http://10.8.0.226:8065/;
}
2024-01-29 23:59:03 +00:00
location /codeword/ {
add_header Access-Control-Allow-Origin hub.pena.digital always;
add_header Access-Control-Allow-Credentials true always;
2024-04-17 03:32:12 +00:00
add_header Access-Control-Allow-Headers content-type,authorization,response-type always;
2024-01-29 23:59:03 +00:00
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
2024-07-20 13:05:39 +00:00
proxy_set_header X-Real-IP $remote_addr;
2025-03-23 23:41:47 +00:00
proxy_set_header Referer $host;
2024-07-20 13:05:39 +00:00
proxy_set_header X-Client-Port $remote_port;
proxy_set_header Origin $host;
2025-03-22 19:40:36 +00:00
proxy_pass http://10.8.0.226:19100/;
2024-01-29 23:59:03 +00:00
}
2024-07-15 10:03:42 +00:00
location /codeword/v1.0.0/ {
add_header Access-Control-Allow-Origin quiz.pena.digital 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 X-Real-IP $remote_addr;
proxy_set_header X-Client-Port $remote_port;
2025-03-23 23:41:47 +00:00
proxy_set_header Referer $host;
2024-07-15 10:03:42 +00:00
proxy_set_header Origin $host;
2025-03-22 19:40:36 +00:00
proxy_pass http://10.8.0.226:19100/;
2024-07-15 10:03:42 +00:00
}
2024-01-29 23:59:03 +00:00
location /price/ {
add_header Access-Control-Allow-Origin hub.pena.digital always;
add_header Access-Control-Allow-Credentials true always;
2024-04-17 03:32:12 +00:00
add_header Access-Control-Allow-Headers content-type,authorization,response-type always;
2024-01-29 23:59:03 +00:00
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
2025-03-18 15:36:05 +00:00
proxy_pass http://10.8.0.226:8001/;
2024-01-29 23:59:03 +00:00
}
2024-07-15 10:03:42 +00:00
location /verification/v1.0.0/ {
2024-01-29 23:59:03 +00:00
add_header Access-Control-Allow-Origin hub.pena.digital always;
add_header Access-Control-Allow-Credentials true always;
2024-04-17 03:32:12 +00:00
add_header Access-Control-Allow-Headers content-type,authorization,response-type always;
2024-01-29 23:59:03 +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 '';
2024-07-15 10:03:42 +00:00
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Client-Port $remote_port;
proxy_set_header Origin $host;
2024-01-29 23:59:03 +00:00
proxy_http_version 1.1;
chunked_transfer_encoding off;
proxy_buffering off;
proxy_cache off;
2025-03-16 22:04:55 +00:00
proxy_pass http://10.8.0.226:7036/;
2024-01-29 23:59:03 +00:00
}
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/nginx/certs/live/pena.digital/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/nginx/certs/live/pena.digital/privkey.pem; # managed by Certbot
}
server {
root /usr/share/nginx/html;
2025-03-23 23:41:47 +00:00
resolver 10.89.1.1 valid=10s;
2025-03-26 21:53:33 +00:00
proxy_pass_request_headers on;
proxy_ssl_server_name on;
index index.html index.htm index.nginx-debian.html;
2024-08-15 19:26:39 +00:00
server_name pena.digital www.pena.digital; # managed by Certbot
client_max_body_size 70M;
2024-02-11 10:34:35 +00:00
location /robots.txt {
try_files $uri $uri/ /index.html;
}
2024-04-17 03:32:12 +00:00
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;
location /404 {
try_files $uri $uri/ /index.html;
}
location /feedback/ {
add_header Access-Control-Allow-Origin pena.digital always;
add_header Access-Control-Allow-Credentials true always;
2024-04-17 03:32:12 +00:00
add_header Access-Control-Allow-Headers content-type,response-type always;
proxy_set_header Host $host;
2025-03-13 21:51:36 +00:00
proxy_pass http://10.8.0.226:8006/;
}
location / {
2025-03-26 22:18:47 +00:00
set $backend "services";
proxy_pass http://$backend;
2023-05-07 11:03:39 +00:00
}
listen 443 ssl; # managed by Certbot
2024-01-24 17:35:41 +00:00
ssl_certificate /etc/nginx/certs/live/pena.digital/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/nginx/certs/live/pena.digital/privkey.pem; # managed by Certbot
2023-05-07 11:03:39 +00:00
2024-03-06 22:57:40 +00:00
}
server {
root /usr/share/nginx/html;
2025-03-23 23:41:47 +00:00
resolver 10.89.1.1 valid=10s;
2025-03-26 21:53:33 +00:00
proxy_pass_request_headers on;
proxy_ssl_server_name on;
2024-03-06 22:57:40 +00:00
index index.html index.htm index.nginx-debian.html;
server_name tourism.pena.digital; # managed by Certbot
client_max_body_size 70M;
location /robots.txt {
try_files $uri $uri/ /index.html;
}
2024-04-17 03:32:12 +00:00
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;
2024-03-06 22:57:40 +00:00
location /404 {
try_files $uri $uri/ /index.html;
}
location /feedback/ {
add_header Access-Control-Allow-Origin pena.digital always;
add_header Access-Control-Allow-Credentials true always;
2024-04-17 03:32:12 +00:00
add_header Access-Control-Allow-Headers content-type,response-type always;
2024-03-06 22:57:40 +00:00
proxy_set_header Host $host;
proxy_pass http://10.8.0.8:8006/;
}
2025-03-13 23:07:21 +00:00
location / {
2025-03-26 22:18:47 +00:00
set $backend "tourizmland";
proxy_pass http://$backend;
2025-03-13 23:07:21 +00:00
}
2024-03-06 22:57:40 +00:00
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/nginx/certs/live/pena.digital/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/nginx/certs/live/pena.digital/privkey.pem; # managed by Certbot
}
server {
root /usr/share/nginx/html;
2025-03-23 23:41:47 +00:00
resolver 10.89.1.1 valid=10s;
2025-03-26 21:53:33 +00:00
proxy_pass_request_headers on;
proxy_ssl_server_name on;
2024-03-06 22:57:40 +00:00
index index.html index.htm index.nginx-debian.html;
server_name solyanka.pena.digital; # managed by Certbot
client_max_body_size 70M;
2024-04-17 03:32:12 +00:00
2024-03-06 22:57:40 +00:00
location /robots.txt {
try_files $uri $uri/ /index.html;
}
location /404 {
try_files $uri $uri/ /index.html;
}
location /feedback/ {
add_header Access-Control-Allow-Origin pena.digital always;
add_header Access-Control-Allow-Credentials true always;
2024-04-17 03:32:12 +00:00
add_header Access-Control-Allow-Headers content-type,response-type always;
2024-03-06 22:57:40 +00:00
proxy_set_header Host $host;
proxy_pass http://10.8.0.8:8006/;
}
2025-03-13 15:50:45 +00:00
# location / {
# proxy_pass http://commonquiz;
# }
2024-03-06 22:57:40 +00:00
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/nginx/certs/live/pena.digital/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/nginx/certs/live/pena.digital/privkey.pem; # managed by Certbot
2023-05-07 11:03:39 +00:00
}
server {
listen 80 ;
listen [::]:80 ;
server_name _;
2024-01-24 00:39:51 +00:00
location /.well-known/acme-challenge/ {
root /var/www/certbot;
}
2024-02-11 10:34:35 +00:00
location /robots.txt {
try_files $uri $uri/ /index.html;
}
2024-01-24 00:39:51 +00:00
location / {
return 301 https://$host$request_uri;
}
2023-05-07 11:03:39 +00:00
}