nginx-infra/sites-available/goosefarminvesting.conf
happybell80 3771ba80de
Some checks failed
Deploy Nginx Config to Ubuntu Server / deploy (push) Has been cancelled
refactor: remove /goosefarm subpath from default, add goosefarminvesting.conf (SSOT)
- goosefarminvesting.com은 별도 도메인으로 직접 서빙
- ro-being.com/goosefarm/ 경로 제거
- base: / 빌드에 맞춘 nginx 설정
2026-03-24 14:54:01 +09:00

47 lines
1.3 KiB
Plaintext

server {
listen 443 ssl;
listen [::]:443 ssl;
server_name goosefarminvesting.com www.goosefarminvesting.com;
ssl_certificate /etc/letsencrypt/live/goosefarminvesting.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/goosefarminvesting.com/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
root /var/www/html/goosefarm;
index index.html;
location /api/ {
proxy_pass http://localhost:8200/api/;
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_read_timeout 120s;
}
location / {
try_files $uri $uri/ /index.html;
}
location = /index.html {
add_header Cache-Control "no-store, no-cache, must-revalidate";
}
location /.well-known/acme-challenge/ {
alias /var/www/html/.well-known/acme-challenge/;
}
}
server {
listen 80;
listen [::]:80;
server_name goosefarminvesting.com www.goosefarminvesting.com;
location /.well-known/acme-challenge/ {
alias /var/www/html/.well-known/acme-challenge/;
}
location / {
return 301 https://$host$request_uri;
}
}