- GitHub Actions를 심플하게 재구성 (불필요한 테스트 로그 제거) - SSL 자동 설정 (Let's Encrypt) - 프록시 라우팅 업데이트: /api/ → 18000, /rb8001/ → 8001 - 배포 경로: /opt/robeing-nginx 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
53 lines
1.5 KiB
Plaintext
53 lines
1.5 KiB
Plaintext
# HTTP to HTTPS redirect
|
|
server {
|
|
listen 80;
|
|
server_name ro-being.com;
|
|
|
|
location /.well-known/acme-challenge/ {
|
|
root /var/www/certbot;
|
|
}
|
|
|
|
location / {
|
|
return 301 https://$server_name$request_uri;
|
|
}
|
|
}
|
|
|
|
# HTTPS server
|
|
server {
|
|
listen 443 ssl;
|
|
server_name ro-being.com;
|
|
|
|
ssl_certificate /etc/nginx/ssl/live/ro-being.com/fullchain.pem;
|
|
ssl_certificate_key /etc/nginx/ssl/live/ro-being.com/privkey.pem;
|
|
|
|
# SSL settings
|
|
ssl_protocols TLSv1.2 TLSv1.3;
|
|
ssl_ciphers HIGH:!aNULL:!MD5;
|
|
|
|
# Main application proxy
|
|
location / {
|
|
proxy_pass http://192.168.219.45:5173;
|
|
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;
|
|
}
|
|
|
|
# API endpoints
|
|
location /api/ {
|
|
proxy_pass http://192.168.219.45:18000;
|
|
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;
|
|
}
|
|
|
|
# RB8001 API endpoints
|
|
location /rb8001/ {
|
|
proxy_pass http://192.168.219.45:8001;
|
|
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;
|
|
}
|
|
} |