Skip to content

Commit

Permalink
🚀feat: deploy db
Browse files Browse the repository at this point in the history
  • Loading branch information
Quantaphocpython committed Nov 9, 2024
1 parent ef2b9fe commit 06c6f63
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,4 @@ WORKDIR /app
COPY --from=build /app/target/*.jar app.jar


ENV SPRING_PROFILES_ACTIVE=prod

ENTRYPOINT ["java", "-jar", "app.jar"]
10 changes: 1 addition & 9 deletions src/main/java/com/videocall/server/config/SecurityConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,18 +68,10 @@ JwtAuthenticationConverter jwtAuthenticationConverter() {
@Bean
CorsConfigurationSource corsConfigurationSource() {
CorsConfiguration configuration = new CorsConfiguration();
configuration.setAllowedOrigins(List.of(
"http://127.0.0.1:5500",
"http://localhost:3000",
"http://localhost:3001",
"https://localhost:3001",
"https://localhost:3000",
"https://backend-production-c2cb.up.railway.app",
"https://84rmcw5w-3000.asse.devtunnels.ms"));
configuration.setAllowedOrigins(List.of("*"));

configuration.setAllowedMethods(List.of("*"));
configuration.setAllowedHeaders(List.of("*"));
configuration.setAllowCredentials(true);

UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
source.registerCorsConfiguration("/**", configuration);
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ spring:
application:
name: call-video
datasource:
url: jdbc:mysql://localhost:3308/wemeet
url: jdbc:mysql://root:[email protected]:40123/railway
username: root
password: root
driver-class-name: com.mysql.cj.jdbc.Driver
Expand Down

0 comments on commit 06c6f63

Please sign in to comment.