소스 검색

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

κρμγ 4 년 전
부모
커밋
5e80a03ddb
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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()