Skip to content
Merged

Dev #162

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,11 @@ jobs:

- name: SSH로 EC2에 접속하여 Production 서버 재배포
uses: appleboy/ssh-action@v1.0.3
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: ap-northeast-2
with:
host: ${{ secrets.EC2_HOST }}
username: ${{ secrets.EC2_USERNAME }}
key: ${{ secrets.EC2_PRIVATE_KEY }}
script_stop: true
envs: AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEY,AWS_DEFAULT_REGION
script: |
cd ~/valanse

Expand All @@ -71,4 +66,4 @@ jobs:
docker compose up -d valanse-server

# 사용하지 않는 이미지 정리
docker image prune -f
docker image prune -f
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ public CorsConfigurationSource corsConfigurationSource() {
"https://test-front-security.netlify.app",
"https://valan-se-web.vercel.app",
"https://valanse.kr",
"https://www.valanse.kr",
"https://develop.valanse.kr",
"http://valanserver.store",
"http://valanserver.store:8080",
Expand All @@ -112,7 +113,12 @@ public CorsConfigurationSource corsConfigurationSource() {
));
configuration.setAllowedOriginPatterns(Arrays.asList(
"http://localhost:*",
"http://127.0.0.1:*"
"http://127.0.0.1:*",
"https://*.valanse.kr",
"https://*.vercel.app",
"https://*.netlify.app",
"http://valanserver.store:[*]",
"https://valanserver.store:[*]"
));

configuration.setAllowedMethods(Arrays.asList("GET", "POST", "PUT", "DELETE", "OPTIONS", "PATCH"));
Expand Down
Loading