This commit is contained in:
Primakov Alexandr Alexandrovich 2023-08-01 13:32:55 +03:00
parent 177df76764
commit a1ede6401f
3 changed files with 12 additions and 20 deletions

View File

@ -92,26 +92,6 @@ server {
# proxy_pass http://35.193.122.195/;
}
}
server {
listen 10022 ssl http2;
listen [::]:10022 ssl http2;
server_name hub.inno-js.ru;
ssl_certificate /etc/letsencrypt/live/hub.inno-js.ru/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/hub.inno-js.ru/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/hub.inno-js.ru/chain.pem;
include /etc/nginx/snippets/ssl-params.conf;
location / {
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
proxy_pass http://85.143.175.152:10022/;
}
}
server {
# listen 80;

View File

@ -33,6 +33,10 @@ http {
server 212.193.59.173:8043;
}
upstream ms {
server 212.193.59.173:8044;
}
upstream red_coder {
server 212.193.59.173:8045;
}

View File

@ -14,6 +14,14 @@ location /multystub/ {
proxy_pass http://multystub/;
}
location /ms/ {
# add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
proxy_pass http://ms/;
}
location /red-coder/ {
# add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';