From 490e09181d21e08d86bf9dcf125e1ab919a5558e Mon Sep 17 00:00:00 2001 From: OZGCloud <ozgcloud@mgm-tp.com> Date: Wed, 4 Dec 2024 17:59:36 +0100 Subject: [PATCH] OZG-7014 handle webjars path --- fachstelle-server/src/main/helm/templates/ingress.yaml | 7 +++++++ .../java/de/ozgcloud/fachstelle/SecurityConfiguration.java | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/fachstelle-server/src/main/helm/templates/ingress.yaml b/fachstelle-server/src/main/helm/templates/ingress.yaml index 866e988..4c3a6eb 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 5c4cf32..d036ab0 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() -- GitLab