Sfoglia il codice sorgente

deploy##++++$#~++++1234567890

κρμγ 4 anni fa
parent
commit
5e80a03ddb
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 1 1
      nginx.conf
  2. 1 1
      src/main/kotlin/inn/ocsf/bee/freigeld/serve/Security.kt

+ 1 - 1
nginx.conf

@@ -28,7 +28,7 @@ http {
 		listen 80;
 
         location / {
-            rewrite /(.*) /code/index.html break;
+            rewrite /(.*) /static/code/index.html break;
             proxy_pass http://frei_backend:8080;
             proxy_redirect     off;
             proxy_set_header   Host             $host:$server_port;

+ 1 - 1
src/main/kotlin/inn/ocsf/bee/freigeld/serve/Security.kt

@@ -81,7 +81,7 @@ class Security : WebSecurityConfigurerAdapter() {
                 .csrf()
                 .disable()
                 .authorizeRequests()
-                .antMatchers("/code/**").permitAll()
+                .antMatchers("/static/**").permitAll()
                 .antMatchers("/api/new/person/**").permitAll()
                 .antMatchers("/ws/**").permitAll()
                 .anyRequest().authenticated()