This commit is contained in:
Qwerty 2024-08-25 01:03:41 +03:00
parent b2e892a6a6
commit bf323d406e
2 changed files with 5 additions and 6 deletions

1
html/index.html Normal file
View File

@ -0,0 +1 @@
<html><body><h1>Test Page</h1></body></html>

View File

@ -10,7 +10,8 @@ http {
} }
location / { location / {
return 301 https://$host$request_uri; root /var/www/html;
index index.html;
} }
} }
@ -22,11 +23,8 @@ http {
ssl_certificate_key /etc/letsencrypt/live/git.evil-bird.ru/privkey.pem; ssl_certificate_key /etc/letsencrypt/live/git.evil-bird.ru/privkey.pem;
location / { location / {
proxy_pass http://10.10.1.10:3000; root /var/www/html;
proxy_set_header Host $host; index index.html;
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;
} }
} }
} }