mirror of
https://github.com/owncloud/ocis
synced 2026-04-26 17:55:24 +02:00
Bump reva deps (#8412)
* bump dependencies Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de> * bump reva and add config options Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de> --------- Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
committed by
GitHub
parent
c92ebf4b46
commit
5ed57cc09a
@@ -37,6 +37,49 @@ func DefaultConfig() *config.Config {
|
||||
Namespace: "com.owncloud.web",
|
||||
Protocol: "tcp",
|
||||
Prefix: "data",
|
||||
CORS: config.CORS{
|
||||
AllowedOrigins: []string{"*"},
|
||||
AllowedMethods: []string{
|
||||
"POST",
|
||||
"HEAD",
|
||||
"PATCH",
|
||||
"OPTIONS",
|
||||
"GET",
|
||||
"DELETE",
|
||||
},
|
||||
AllowedHeaders: []string{
|
||||
"Authorization",
|
||||
"Origin",
|
||||
"X-Requested-With",
|
||||
"X-Request-Id",
|
||||
"X-HTTP-Method-Override",
|
||||
"Content-Type",
|
||||
"Upload-Length",
|
||||
"Upload-Offset",
|
||||
"Tus-Resumable",
|
||||
"Upload-Metadata",
|
||||
"Upload-Defer-Length",
|
||||
"Upload-Concat",
|
||||
"Upload-Incomplete",
|
||||
"Upload-Draft-Interop-Version",
|
||||
},
|
||||
AllowCredentials: true,
|
||||
ExposedHeaders: []string{
|
||||
"Upload-Offset",
|
||||
"Location",
|
||||
"Upload-Length",
|
||||
"Tus-Version",
|
||||
"Tus-Resumable",
|
||||
"Tus-Max-Size",
|
||||
"Tus-Extension",
|
||||
"Upload-Metadata",
|
||||
"Upload-Defer-Length",
|
||||
"Upload-Concat",
|
||||
"Upload-Incomplete",
|
||||
"Upload-Draft-Interop-Version",
|
||||
},
|
||||
MaxAge: 86400,
|
||||
},
|
||||
},
|
||||
Service: config.Service{
|
||||
Name: "storage-users",
|
||||
@@ -69,6 +112,9 @@ func DefaultConfig() *config.Config {
|
||||
ShareFolder: "/Shares",
|
||||
UserLayout: "{{.Id.OpaqueId}}",
|
||||
Region: "default",
|
||||
SendContentMd5: true,
|
||||
ConcurrentStreamParts: true,
|
||||
NumThreads: 4,
|
||||
PersonalSpaceAliasTemplate: "{{.SpaceType}}/{{.User.Username | lower}}",
|
||||
GeneralSpaceAliasTemplate: "{{.SpaceType}}/{{.SpaceName | replace \" \" \"-\" | lower}}",
|
||||
PermissionsEndpoint: "com.owncloud.api.settings",
|
||||
|
||||
Reference in New Issue
Block a user