Update: get ssl cert

This commit is contained in:
Leo
2026-09-23 00:07:38 +05:00
parent beb3141c24
commit f457c51dcb
13 changed files with 102 additions and 2 deletions
+20
View File
@@ -0,0 +1,20 @@
server {
listen 80;
server_name {{ domain }};
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
server_name {{ domain }};
ssl_certificate /etc/letsencrypt/live/{{ domain }}/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/{{ domain }}/privkey.pem;
location / {
proxy_pass http://127.0.0.1:3001;
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 https;
}