From 84f1096bde48ebc988bf75da9815897209bc582f Mon Sep 17 00:00:00 2001 From: "primakov.a.a" Date: Wed, 14 Sep 2022 18:01:55 +0300 Subject: [PATCH] add hub --- 443.conf | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/443.conf b/443.conf index 92852b6..ad72d3f 100644 --- a/443.conf +++ b/443.conf @@ -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;