From 1c0441eb4b507d9c8bc454f43b85af9e975194da Mon Sep 17 00:00:00 2001 From: primakov Date: Fri, 22 Mar 2024 12:55:55 +0300 Subject: [PATCH] add git.inno... --- 443.conf | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/443.conf b/443.conf index adf564a..17c7c73 100644 --- a/443.conf +++ b/443.conf @@ -55,11 +55,36 @@ server { 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_set_header Host $host; proxy_pass http://85.143.175.152:10880/; # proxy_pass http://35.193.122.195/; } } +server { + # listen 80; + listen 443 ssl http2; + listen [::]:443 ssl http2; + + server_name git.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_set_header Host $host; + proxy_pass http://85.143.175.152:3000/; + # proxy_pass http://35.193.122.195/; + } +} + server { # listen 80; listen 443 ssl http2; @@ -74,6 +99,7 @@ server { include /etc/nginx/snippets/ssl-params.conf; location / { + proxy_set_header Host $host; proxy_pass http://212.193.57.252:80/; } }