Skip to content

Commit e38ad07

Browse files
committed
image renaming and temporarily allow all origins
1 parent 4c3a6d7 commit e38ad07

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
platforms: linux/amd64, linux/arm64
3636
file: ./Dockerfile
3737
context: .
38-
tags: ghcr.io/ls1intum/angelos-server:latest
38+
tags: ghcr.io/ls1intum/angelos-server:new-latest
3939
push: true
4040
no-cache: true
4141

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ services:
1515
- angelos-network
1616

1717
angelos-server:
18-
image: ghcr.io/ls1intum/angelos-server:latest
18+
image: ghcr.io/ls1intum/angelos-server:new-latest
1919
container_name: angelos-server
2020
depends_on:
2121
- db

src/main/java/com/ase/angelos_kb_backend/configuration/BootstrapConfig.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,7 @@ public void createDefaultAdmin() {
5454
admin.setOrganisation(systemOrg); // Assign the "System Organisation"
5555
userRepository.save(admin);
5656
}
57+
58+
System.out.println("System admin created.");
5759
}
5860
}

src/main/java/com/ase/angelos_kb_backend/configuration/SecurityConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ public PasswordEncoder passwordEncoder() {
8888
@Bean
8989
public CorsConfigurationSource corsConfigurationSource() {
9090
CorsConfiguration configuration = new CorsConfiguration();
91-
configuration.addAllowedOrigin(chatbotOrigin);
92-
configuration.addAllowedOrigin(kbOrigin);
91+
configuration.addAllowedOriginPattern("*");
92+
//configuration.addAllowedOrigin(kbOrigin);
9393
configuration.setAllowCredentials(true);
9494
configuration.addAllowedMethod("*");
9595
configuration.addAllowedHeader("*");

0 commit comments

Comments
 (0)