diff --git a/.github/workflows/deploy-ec2-base.yml b/.github/workflows/deploy-ec2-base.yml index 5982543f..62ae1576 100644 --- a/.github/workflows/deploy-ec2-base.yml +++ b/.github/workflows/deploy-ec2-base.yml @@ -13,7 +13,7 @@ jobs: ec2-production-deploy: runs-on: ubuntu-latest env: - APP_DOMAIN: new-project-final.link + APP_DOMAIN: wego.monster APP_DIR: wego-production APP_PORT: 3000 PM2_APP_NAME: wego-production diff --git a/.github/workflows/deploy-ec2-preview.yml b/.github/workflows/deploy-ec2-preview.yml index 1051dab4..46267e01 100644 --- a/.github/workflows/deploy-ec2-preview.yml +++ b/.github/workflows/deploy-ec2-preview.yml @@ -16,7 +16,7 @@ jobs: preview-deploy: runs-on: ubuntu-latest env: - APP_DOMAIN: new-project-final.link + APP_DOMAIN: wego.monster # 브랜치명 계산 필요 # APP_DIR: wego-production # 앱 포트 계산 필요 diff --git a/scripts/ec2/ec2-setup.sh b/scripts/ec2/ec2-setup.sh index 6f907a71..36847e4e 100644 --- a/scripts/ec2/ec2-setup.sh +++ b/scripts/ec2/ec2-setup.sh @@ -90,7 +90,7 @@ if grep -q "server_names_hash_bucket_size" /etc/nginx/nginx.conf; then if [ "$CURRENT_VALUE" != "128" ]; then echo "⚙️ server_names_hash_bucket_size를 $CURRENT_VALUE에서 128로 변경합니다." - sudo sed -i 's/server_names_hash_bucket_size [0-9]\+;/server_names_hash_bucket_size 128;/' /etc/nginx/nginx.conf + sudo sed -i 's/^# server_names_hash_bucket_size [0-9]\+;/server_names_hash_bucket_size 128;/' /etc/nginx/nginx.conf echo "✅ Nginx 설정이 수정되었습니다." else echo "✅ server_names_hash_bucket_size가 이미 128로 설정되어 있습니다." @@ -126,8 +126,8 @@ server { listen 443 ssl http2; server_name ${SUB_APP_DOMAIN}${APP_DOMAIN}; - ssl_certificate /etc/letsencrypt/live/new-project-final.link/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/new-project-final.link/privkey.pem; + ssl_certificate /etc/letsencrypt/live/wego.monster/fullchain.pem; + ssl_certificate_key /etc/letsencrypt/live/wego.monster/privkey.pem; ssl_protocols TLSv1.2 TLSv1.3; ssl_prefer_server_ciphers on;