chore: add deployment runbook and server configs for kittisak.com

This commit is contained in:
Your Name committed 2026-09-23 18:49:34 +07:00
1 parent 14d3282a81
commit 486c8d31f1
7 files changed
+478

No files matched your search

@@ -0,0 +1,38 @@
server {
listen 80;
server_name kittisak.com;
location /.well-known/acme-challenge/ {
root /var/www/certbot;
}
location / {
return 301 https://$host$request_uri;
}
}
server {
listen 443 ssl;
server_name kittisak.com;
ssl_certificate /etc/letsencrypt/live/kittisak.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/kittisak.com/privkey.pem;
location / {
proxy_pass http://192.168.1.167:3005;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
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_cache_bypass $http_upgrade;
}
location /_next/static/ {
proxy_pass http://192.168.1.167:3005;
proxy_http_version 1.1;
proxy_set_header Host $host;
add_header Cache-Control "public, max-age=31536000, immutable";
}
}