Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

main to develop #225

Merged
merged 37 commits into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
4b101f7
Merge pull request #132 from prgrms-web-devcourse-final-project/develop
yeonsu00 Dec 6, 2024
b56ae93
Merge pull request #138 from prgrms-web-devcourse-final-project/develop
yeonsu00 Dec 6, 2024
ee7efb4
fix: #141 ๋„๋ฉ”์ธ ํ—ˆ์šฉ ๋ณ€๊ฒฝ
kahyun0255 Dec 6, 2024
d4dc150
Merge pull request #143 from prgrms-web-devcourse-final-project/hotfiโ€ฆ
kahyun0255 Dec 6, 2024
2b21bdc
fix: #114 swagger ๋ฌธ์ œ ํ•ด๊ฒฐ
kahyun0255 Dec 6, 2024
dcb1cdc
Merge pull request #145 from prgrms-web-devcourse-final-project/hotfiโ€ฆ
kahyun0255 Dec 6, 2024
b29c75d
Merge pull request #150 from prgrms-web-devcourse-final-project/develop
l2yujw Dec 6, 2024
c863401
hotfix: DOCKER_USERNAME ์ถ”๊ฐ€
l2yujw Dec 6, 2024
b52b20d
hotfix: ์ˆ˜์ •
l2yujw Dec 6, 2024
e9790ec
hotfix: docker-compose restart ์ •์ฑ… ์ถ”๊ฐ€
l2yujw Dec 6, 2024
32d9bee
hotfix: app-server 80์œผ๋กœ ๋ณ€๊ฒฝ
l2yujw Dec 6, 2024
e0b476c
hotfix: cd ๋ณ€๊ฒฝ
l2yujw Dec 6, 2024
29a5507
hotfix: swagger ์„ค์ • ๋ณ€๊ฒฝ
l2yujw Dec 6, 2024
4ec00b6
hotfix: cron ์„ค์ • ์ œ๊ฑฐ
l2yujw Dec 6, 2024
c173802
Merge pull request #153 from prgrms-web-devcourse-final-project/hotfiโ€ฆ
l2yujw Dec 6, 2024
f02f69e
Merge pull request #156 from prgrms-web-devcourse-final-project/develop
yeonsu00 Dec 6, 2024
915b273
Merge pull request #158 from prgrms-web-devcourse-final-project/develop
yeonsu00 Dec 7, 2024
8b1d354
Merge pull request #160 from prgrms-web-devcourse-final-project/develop
yeonsu00 Dec 7, 2024
1bd14be
Merge pull request #167 from prgrms-web-devcourse-final-project/develop
yeonsu00 Dec 7, 2024
11c8d0a
Merge pull request #169 from prgrms-web-devcourse-final-project/develop
l2yujw Dec 8, 2024
e0c1934
Merge pull request #175 from prgrms-web-devcourse-final-project/develop
l2yujw Dec 8, 2024
58a7bd2
Merge pull request #177 from prgrms-web-devcourse-final-project/develop
yeonsu00 Dec 8, 2024
4bdeadd
Merge pull request #185 from prgrms-web-devcourse-final-project/develop
kahyun0255 Dec 9, 2024
e0bfeac
Merge pull request #188 from prgrms-web-devcourse-final-project/develop
yeonsu00 Dec 9, 2024
ab1d103
Merge pull request #193 from prgrms-web-devcourse-final-project/develop
yeonsu00 Dec 9, 2024
a1951db
Merge pull request #195 from prgrms-web-devcourse-final-project/develop
yeonsu00 Dec 9, 2024
7c032e4
Merge pull request #197 from prgrms-web-devcourse-final-project/develop
yeonsu00 Dec 9, 2024
7238926
Merge pull request #200 from prgrms-web-devcourse-final-project/develop
yeonsu00 Dec 9, 2024
9e9ca53
Merge pull request #202 from prgrms-web-devcourse-final-project/develop
yeonsu00 Dec 9, 2024
56b74aa
Merge pull request #204 from prgrms-web-devcourse-final-project/develop
yeonsu00 Dec 9, 2024
ed89acd
Merge pull request #207 from prgrms-web-devcourse-final-project/develop
l2yujw Dec 9, 2024
ce0377c
Merge pull request #210 from prgrms-web-devcourse-final-project/develop
l2yujw Dec 9, 2024
7d266e1
Merge pull request #213 from prgrms-web-devcourse-final-project/develop
hgh1472 Dec 9, 2024
ee38995
Merge pull request #218 from prgrms-web-devcourse-final-project/develop
l2yujw Dec 10, 2024
0f8e7e2
Merge pull request #221 from prgrms-web-devcourse-final-project/develop
l2yujw Dec 10, 2024
ca465a6
fix: hikari ์„ค์ • ์ถ”๊ฐ€
yeonsu00 Dec 16, 2024
4b22044
Merge pull request #224 from prgrms-web-devcourse-final-project/hotfiโ€ฆ
yeonsu00 Dec 16, 2024
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
6 changes: 1 addition & 5 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ jobs:
AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_KEY }}
AWS_REGION: ${{ secrets.AWS_REGION }}

RECOMMEND_CRON : ${{ secrets.RECOMMEND_CRON }}
UNBAN_CRON : ${{ secrets.UNBAN_CRON }}

# ECR ํ™˜๊ฒฝ๋ณ€์ˆ˜
ECR_URI: ${{ secrets.ECR_URI }}

Expand Down Expand Up @@ -106,15 +103,14 @@ jobs:
echo "REDIS_PORT=${{ secrets.REDIS_PORT }}" >> docker-compose/.env
echo "REDIS_HOST=${{ secrets.REDIS_HOST }}" >> docker-compose/.env
echo "BOTTLER_FCM_BASE64=${{ secrets.BOTTLER_FCM_BASE64 }}" >> docker-compose/.env
echo "RECOMMEND_CRON=${{ secrets.RECOMMEND_CRON }}" >> docker-compose/.env
echo "UNBAN_CRON=${{ secrets.UNBAN_CRON }}" >> docker-compose/.env
echo "BUCKET_NAME=${{ secrets.BUCKET_NAME }}" >> docker-compose/.env
echo "BASE_URL=${{ secrets.BASE_URL }}" >> docker-compose/.env
echo "OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }}" >> docker-compose/.env
echo "KAKAO_CLIENT_ID=${{ secrets.KAKAO_CLIENT_ID }}" >> docker-compose/.env
echo "KAKAO_CLIENT_SECRET=${{ secrets.KAKAO_CLIENT_SECRET }}" >> docker-compose/.env
echo "KAKAO_REDIRECT_URL=${{ secrets.KAKAO_REDIRECT_URL }}" >> docker-compose/.env
echo "SLACK_TOKEN=${{ secrets.SLACK_TOKEN }}" >> docker-compose/.env
echo "DOCKER_USERNAME=${{ secrets.DOCKER_USERNAME }}" >> docker-compose/.env
echo "TAG=${{ github.sha }}" >> docker-compose/.env

- name: docker-compose.yml, .env ํŒŒ์ผ EC2๋กœ ๋ณต์‚ฌ
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ jobs:
BUCKET_NAME: ${{ secrets.BUCKET_NAME }}
BASE_URL: ${{ secrets.BASE_URL }}

RECOMMEND_CRON : ${{ secrets.RECOMMEND_CRON }}
UNBAN_CRON : ${{ secrets.UNBAN_CRON }}

# gpt ํ™˜๊ฒฝ๋ณ€์ˆ˜
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}

Expand Down
6 changes: 4 additions & 2 deletions docker-compose/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,19 @@ services:
image: ${DOCKER_USERNAME}/bottler:${TAG} # Docker Hub ์ด๋ฏธ์ง€ ์‚ฌ์šฉ
container_name: app-server
ports:
- "8080:8080" # ์ปจํ…Œ์ด๋„ˆ ํฌํŠธ๋ฅผ 8080์œผ๋กœ ๋…ธ์ถœ
env_file: # ํ™˜๊ฒฝ ๋ณ€์ˆ˜ ํŒŒ์ผ(.env) ์ฐธ์กฐ
- "80:8080" # ์ปจํ…Œ์ด๋„ˆ ํฌํŠธ๋ฅผ 8080์œผ๋กœ ๋…ธ์ถœ
env_file: # ํ™˜๊ฒฝ ๋ณ€์ˆ˜ ํŒŒ์ผ(.env) ์ฐธ์กฐ
- .env
depends_on:
- redis
environment:
- SPRING_REDIS_HOST=redis
- SPRING_REDIS_PORT=6379
restart: always # ์žฌ์‹œ์ž‘ ์ •์ฑ… ์ถ”๊ฐ€

redis:
image: redis:latest
container_name: redis-server
ports:
- "6379:6379"
restart: always # ์žฌ์‹œ์ž‘ ์ •์ฑ… ์ถ”๊ฐ€
15 changes: 6 additions & 9 deletions src/main/java/postman/bottler/config/SecurityConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,17 @@
import org.springframework.web.cors.CorsConfiguration;
import org.springframework.web.cors.CorsConfigurationSource;
import org.springframework.web.cors.UrlBasedCorsConfigurationSource;

import postman.bottler.user.auth.JwtAccessDeniedHandler;
import postman.bottler.user.auth.JwtAuthenticationEntryPoint;
import postman.bottler.user.auth.JwtFilter;
import postman.bottler.user.auth.JwtTokenProvider;


@Configuration
@RequiredArgsConstructor
@EnableWebSecurity
public class SecurityConfig {

private final JwtTokenProvider jwtTokenProvider;
private final JwtAuthenticationEntryPoint jwtAuthenticationEntryPoint;
private final JwtAccessDeniedHandler jwtAccessDeniedHandler;
Expand Down Expand Up @@ -77,18 +78,14 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
@Bean
public CorsConfigurationSource corsConfigurationSource() {
CorsConfiguration configuration = new CorsConfiguration();
configuration.setAllowedOriginPatterns(Arrays.asList(
"http://localhost:5173",
"https://bottler.online"
));
configuration.addAllowedOriginPattern("*"); // ๋ชจ๋“  ๋„๋ฉ”์ธ ํ—ˆ์šฉ
configuration.setAllowedMethods(Arrays.asList("GET", "POST", "PUT", "DELETE", "OPTIONS", "PATCH"));
configuration.setAllowedHeaders(Collections.singletonList("*"));
configuration.setAllowCredentials(true);
configuration.setAllowedHeaders(Collections.singletonList("*")); // ๋ชจ๋“  ํ—ค๋” ํ—ˆ์šฉ
configuration.setAllowCredentials(true); // ์ธ์ฆ ์ •๋ณด๋ฅผ ํฌํ•จํ•œ ์š”์ฒญ ํ—ˆ์šฉ
configuration.setMaxAge(3600L); // ์บ์‹ฑ ์‹œ๊ฐ„ ์„ค์ •

UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
source.registerCorsConfiguration("/**", configuration);
return source;
}


}
1 change: 0 additions & 1 deletion src/main/java/postman/bottler/config/SwaggerConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,3 @@ private Info apiInfo() {
.version("1.0.0");
}
}

7 changes: 7 additions & 0 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ spring:
url: ${DB_URL}
username: ${DB_USERNAME}
password: ${DB_PASSWORD}
hikari:
maximum-pool-size: 10
connection-timeout: 30000
validation-timeout: 2000
minimum-idle: 5
idle-timeout: 30000
max-lifetime: 1800000

jpa:
hibernate:
Expand Down
Loading