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