1
0

#2 Folder sharing

This commit is contained in:
2023-01-23 21:02:09 +01:00
parent 7ba25aa455
commit b3ea85bdae
19 changed files with 184 additions and 70 deletions

View File

@@ -2,10 +2,21 @@ package de.nbscloud.webcontainer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.http.SessionCreationPolicy;
import org.springframework.security.web.SecurityFilterChain;
@SpringBootApplication
public class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
@Bean
public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
http.sessionManagement()
.sessionCreationPolicy(SessionCreationPolicy.ALWAYS);
return http.build();
}
}

View File

@@ -1,6 +1,7 @@
v19:
- #22 Fix a bug with password protected shares
- Add Apache httpd config example
- #2 Add folder sharing
v18:
- #22 Password protected shares

View File

@@ -1,5 +1,7 @@
<div id="header-container" th:fragment="header">
<div th:each="app : ${apps}" class="menu-entry">
<a th:href="@{/} + ${app.startPath}" th:text="${app.id}"/>
<div th:if="${restricted == null || restricted == false}">
<div th:each="app : ${apps}" class="menu-entry">
<a th:href="@{/} + ${app.startPath}" th:text="${app.id}"/>
</div>
</div>
</div>