github.com/cs3org/reva/v2@v2.27.7/tests/oc-integration-tests/drone/frontend.toml (about) 1 # This config file will start a reva service that: 2 # - serves as the entrypoint for owncloud APIs. 3 # - jails users into their home folder as in owncloud classic 4 # - serves http endpoints on port 20080 5 # - / --------------- ocdav 6 # - /ocs ------------ ocs 7 # - TODO(diocas): ocm 8 9 [shared] 10 jwt_secret = "Pive-Fumkiu4" 11 gatewaysvc = "localhost:19000" 12 13 [http] 14 address = "0.0.0.0:20080" 15 16 [http.middlewares.cors] 17 allow_credentials = true 18 19 [http.middlewares.auth] 20 credential_chain = ["basic"] 21 22 [http.services.ocdav] 23 # serve ocdav on the root path 24 prefix = "" 25 # for user lookups 26 # prefix the path of requests to /dav/files with this namespace 27 # While owncloud has only listed usernames at this endpoint CERN has 28 # been exposing more than just usernames. For owncloud deployments we 29 # can prefix the path to jail the requests to the correct CS3 namespace. 30 # In this deployment we mounted the owncloud storage provider at /users. It 31 # expects a username as the first path segment. 32 # currently, only the desktop client will use this endpoint, but only if 33 # the dav.chunking capability is available 34 # TODO implement a path wrapper that rewrites `<username>` into the path 35 # layout for the users home? 36 # no, use GetHome? 37 # for eos we need to rewrite the path 38 # TODO strip the username from the path so the CS3 namespace can be mounted 39 # at the files/<username> endpoint? what about migration? separate reva instance 40 files_namespace = "/users/{{.Id.OpaqueId}}" 41 42 # similar to the dav/files endpoint we can configure a prefix for the old webdav endpoint 43 # we use the old webdav endpoint to present the cs3 namespace 44 # note: this changes the tree that is rendered at remote.php/webdav from the users home to the cs3 namespace 45 # use webdav_namespace = "/home" to use the old namespace that only exposes the users files 46 # this endpoint should not affect the desktop client sync but will present different folders for the other clients: 47 # - the desktop clients use a hardcoded remote.php/dav/files/<username> if the dav.chunkung capability is present 48 # - the ios ios uses the core.webdav-root capability which points to remote.php/webdav in oc10 49 # - the oc js sdk is hardcoded to the remote.php/webdav so it will see the new tree 50 # - TODO android? no sync ... but will see different tree 51 webdav_namespace = "/users/{{.Id.OpaqueId}}" 52 machine_auth_apikey = "change-me-please" 53 54 allow_depth_infinity = true 55 56 [http.services.ocs] 57 machine_auth_apikey = "change-me-please" 58 59 [http.services.ocs.capabilities.capabilities.core.status] 60 version = "10.0.11.5" 61 versionstring = "10.0.11" 62 63 [http.services.ocs.capabilities.capabilities.files_sharing] 64 api_enabled = true 65 group_sharing = true 66 auto_accept_share = true 67 share_with_group_members_only = true 68 share_with_membership_groups_only = true 69 default_permissions = 22 70 search_min_length = 3 71 72 [http.services.ocs.capabilities.capabilities.files_sharing.public] 73 enabled = true 74 send_mail = true 75 social_share = true 76 upload = true 77 multiple = true 78 supports_upload_only = true 79 80 [http.services.ocs.capabilities.capabilities.files_sharing.public.password] 81 enforced = false 82 83 [http.services.ocs.capabilities.capabilities.files_sharing.public.password.enforced_for] 84 read_only = false 85 read_write = false 86 read_write_delete = false 87 upload_only = false 88 89 [http.services.ocs.capabilities.capabilities.files_sharing.public.expire_date] 90 enabled = true 91 92 [http.services.ocs.capabilities.capabilities.files_sharing.user] 93 send_mail = true 94 95 [http.services.ocs.capabilities.capabilities.files_sharing.user_enumeration] 96 enabled = true 97 group_members_only = true 98 99 [http.services.ocs.capabilities.capabilities.files_sharing.federation] 100 outgoing = true 101 incoming = true 102 103 [http.services.ocs.capabilities.capabilities.notifications] 104 endpoints = [] 105 106 [http.services.ocs.capabilities.capabilities.files.tus_support] 107 version = "1.0.0" 108 resumable = "1.0.0" 109 extension = "creation,creation-with-upload" 110 http_method_override = "" 111 max_chunk_size = 0 112 113 # serve /ocm 114 [http.services.ocmd] 115 prefix = "ocm" 116 117 [http.middlewares.providerauthorizer] 118 driver = "json" 119 120 [http.middlewares.providerauthorizer.drivers.json] 121 providers = "providers.demo.json"