This commit is contained in:
Primakov Alexandr Alexandrovich 2022-09-14 18:01:55 +03:00
parent 2552bb3f54
commit 84f1096bde

View File

@ -70,6 +70,29 @@ server {
}
}
server {
# listen 80;
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name hub.inno-js.ru;
ssl_certificate /etc/letsencrypt/live/inno-js.ru/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/inno-js.ru/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/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:10880/;
# proxy_pass http://35.193.122.195/;
}
}
server {
# listen 80;
listen 443 ssl http2;