Update default.conf
Add mirror domains
This commit is contained in:
parent
12f100dd82
commit
5c282147bf
296
default.conf
296
default.conf
@ -211,6 +211,302 @@ server {
|
|||||||
ssl_certificate /etc/nginx/certs/live/pena.digital/fullchain.pem; # 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
|
ssl_certificate_key /etc/nginx/certs/live/pena.digital/privkey.pem; # managed by Certbot
|
||||||
|
|
||||||
|
}
|
||||||
|
server {
|
||||||
|
root /usr/share/nginx/html;
|
||||||
|
location /robots.txt {
|
||||||
|
try_files $uri $uri/ /index.html;
|
||||||
|
}
|
||||||
|
|
||||||
|
index index.html index.htm index.nginx-debian.html;
|
||||||
|
server_name penaquiz.online; # managed by Certbot
|
||||||
|
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;
|
||||||
|
proxy_pass http://10.8.0.8:59300;
|
||||||
|
}
|
||||||
|
|
||||||
|
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;
|
||||||
|
proxy_pass http://10.8.0.8:59300;
|
||||||
|
}
|
||||||
|
|
||||||
|
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;
|
||||||
|
proxy_pass https://10.8.0.8:1488/;
|
||||||
|
}
|
||||||
|
|
||||||
|
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;
|
||||||
|
proxy_pass http://10.8.0.8:59303/;
|
||||||
|
}
|
||||||
|
|
||||||
|
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;
|
||||||
|
proxy_pass http://10.8.0.8:8065/;
|
||||||
|
}
|
||||||
|
|
||||||
|
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;
|
||||||
|
proxy_pass http://10.8.0.8:59664/;
|
||||||
|
}
|
||||||
|
|
||||||
|
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;
|
||||||
|
proxy_pass http://10.8.0.8:8001/;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /verification1 {
|
||||||
|
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,response-type always;
|
||||||
|
add_header Access-Control-Allow-Methods GET;
|
||||||
|
chunked_transfer_encoding off;
|
||||||
|
proxy_buffering off;
|
||||||
|
proxy_cache off;
|
||||||
|
proxy_pass https://storage.yandexcloud.net;
|
||||||
|
}
|
||||||
|
|
||||||
|
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/;
|
||||||
|
}
|
||||||
|
|
||||||
|
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;
|
||||||
|
proxy_pass http://10.8.0.9:1488/;
|
||||||
|
}
|
||||||
|
|
||||||
|
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;
|
||||||
|
proxy_pass http://10.8.0.9:1489/;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /squizimages {
|
||||||
|
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,response-type always;
|
||||||
|
add_header Access-Control-Allow-Methods GET;
|
||||||
|
chunked_transfer_encoding off;
|
||||||
|
proxy_buffering off;
|
||||||
|
proxy_cache off;
|
||||||
|
proxy_pass https://storage.yandexcloud.net;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
|
proxy_pass http://squiz;
|
||||||
|
}
|
||||||
|
|
||||||
|
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;
|
||||||
|
location /robots.txt {
|
||||||
|
try_files $uri $uri/ /index.html;
|
||||||
|
}
|
||||||
|
|
||||||
|
index index.html index.htm index.nginx-debian.html;
|
||||||
|
server_name penaquiz.ru; # managed by Certbot
|
||||||
|
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;
|
||||||
|
proxy_pass http://10.8.0.8:59300;
|
||||||
|
}
|
||||||
|
|
||||||
|
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;
|
||||||
|
proxy_pass http://10.8.0.8:59300;
|
||||||
|
}
|
||||||
|
|
||||||
|
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;
|
||||||
|
proxy_pass https://10.8.0.8:1488/;
|
||||||
|
}
|
||||||
|
|
||||||
|
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;
|
||||||
|
proxy_pass http://10.8.0.8:59303/;
|
||||||
|
}
|
||||||
|
|
||||||
|
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;
|
||||||
|
proxy_pass http://10.8.0.8:8065/;
|
||||||
|
}
|
||||||
|
|
||||||
|
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;
|
||||||
|
proxy_pass http://10.8.0.8:59664/;
|
||||||
|
}
|
||||||
|
|
||||||
|
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;
|
||||||
|
proxy_pass http://10.8.0.8:8001/;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /verification1 {
|
||||||
|
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,response-type always;
|
||||||
|
add_header Access-Control-Allow-Methods GET;
|
||||||
|
chunked_transfer_encoding off;
|
||||||
|
proxy_buffering off;
|
||||||
|
proxy_cache off;
|
||||||
|
proxy_pass https://storage.yandexcloud.net;
|
||||||
|
}
|
||||||
|
|
||||||
|
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/;
|
||||||
|
}
|
||||||
|
|
||||||
|
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;
|
||||||
|
proxy_pass http://10.8.0.9:1488/;
|
||||||
|
}
|
||||||
|
|
||||||
|
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;
|
||||||
|
proxy_pass http://10.8.0.9:1489/;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /squizimages {
|
||||||
|
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,response-type always;
|
||||||
|
add_header Access-Control-Allow-Methods GET;
|
||||||
|
chunked_transfer_encoding off;
|
||||||
|
proxy_buffering off;
|
||||||
|
proxy_cache off;
|
||||||
|
proxy_pass https://storage.yandexcloud.net;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
|
proxy_pass http://squiz;
|
||||||
|
}
|
||||||
|
|
||||||
|
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 {
|
server {
|
||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
|
Loading…
Reference in New Issue
Block a user