Add nginx configs

This commit is contained in:
root
2026-07-07 18:56:13 +03:00
parent 00ad60bf9d
commit b6e06752ec
5 changed files with 377 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
server {
listen 80;
server_name git.zod2.com;
return 301 https://git.zod2.com$request_uri;
}
server {
listen 443 ssl http2;
server_name git.zod2.com;
ssl_certificate /etc/letsencrypt/live/git.zod2.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/git.zod2.com/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
location / {
proxy_pass http://10.10.10.2: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;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}