migrate web to the new config scheme

This commit is contained in:
A.Unger
2021-11-05 13:33:03 +01:00
parent 11855bcaab
commit ca997e5bfc
9 changed files with 242 additions and 60 deletions

View File

@@ -115,7 +115,7 @@ func DefaultConfig() *Config {
Addr: "127.0.0.1:9190",
Namespace: "com.owncloud.web",
Root: "/",
CacheTTL: 604800, // 10 days
CacheTTL: 604800, // 7 days
CORS: CORS{
AllowedOrigins: []string{"*"},
AllowedMethods: []string{"GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"},