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