From dd75d1a1fc827a1114032956e4d20fc937e3e46b Mon Sep 17 00:00:00 2001 From: Qwerty Date: Sun, 25 Aug 2024 01:30:35 +0300 Subject: [PATCH] fix conf --- nginx.conf | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/nginx.conf b/nginx.conf index 4dde836..90a5bdb 100644 --- a/nginx.conf +++ b/nginx.conf @@ -10,8 +10,7 @@ http { } location / { - root /var/www/html; - index index.html; + return 301 https://$host$request_uri; } } @@ -23,8 +22,11 @@ http { ssl_certificate_key /etc/letsencrypt/live/git.evil-bird.ru/privkey.pem; location / { - root /var/www/html; - index index.html; + proxy_pass http://10.10.1.10:3000; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; } } -} +} \ No newline at end of file