diff --git a/fachstelle-server/src/main/helm/templates/ingress.yaml b/fachstelle-server/src/main/helm/templates/ingress.yaml index 866e98832fd97b0f2fa60bbec8e77ce540a9b253..4c3a6ebabaf68b8f2d82c7a044c53f241172786b 100644 --- a/fachstelle-server/src/main/helm/templates/ingress.yaml +++ b/fachstelle-server/src/main/helm/templates/ingress.yaml @@ -100,6 +100,13 @@ spec: name: fachstelle-server port: number: 8080 + - path: /webjars + pathType: Prefix + backend: + service: + name: fachstelle-server + port: + number: 8080 host: {{ include "app.baseDomain" . }} tls: - hosts: diff --git a/fachstelle-server/src/main/java/de/ozgcloud/fachstelle/SecurityConfiguration.java b/fachstelle-server/src/main/java/de/ozgcloud/fachstelle/SecurityConfiguration.java index 5c4cf32bdcc76f2d02a0af98b8873cf94776ac21..d036ab0fbf6a1e1b4b429c40397edccc7e22051f 100644 --- a/fachstelle-server/src/main/java/de/ozgcloud/fachstelle/SecurityConfiguration.java +++ b/fachstelle-server/src/main/java/de/ozgcloud/fachstelle/SecurityConfiguration.java @@ -84,7 +84,7 @@ public class SecurityConfiguration { public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { http .authorizeHttpRequests(authorize -> authorize - .requestMatchers("/registrierung", "/static/**", "/actuator/**", "/error", "/fonts/**", "/webjars/**", + .requestMatchers("/registrierung", "/static/**", "/webjars/**", "/actuator/**", "/error", "/fonts/**", "/webjars/**", "/api/environment") .permitAll() .requestMatchers("/api/**", "/preregister", "/register", "/success").authenticated()