github.com/cs3org/reva/v2@v2.27.7/tests/oc-integration-tests/local/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 [shared.grpc_client_options] 13 tls_mode = "insecure" 14 15 [log] 16 #level = "warn" 17 #mode = "json" 18 19 [http] 20 address = "0.0.0.0:20180" 21 22 [http.middlewares.cors] 23 allow_credentials = true 24 25 [http.services.ocdav] 26 # serve ocdav on the root path 27 prefix = "" 28 # for user lookups 29 # prefix the path of requests to /dav/files with this namespace 30 # While owncloud has only listed usernames at this endpoint CERN has 31 # been exposing more than just usernames. For owncloud deployments we 32 # can prefix the path to jail the requests to the correct CS3 namespace. 33 # In this deployment we mounted the owncloud storage provider at /users. It 34 # expects a username as the first path segment. 35 # currently, only the desktop client will use this endpoint, but only if 36 # the dav.chunking capability is available 37 # TODO implement a path wrapper that rewrites `<username>` into the path 38 # layout for the users home? 39 # no, use GetHome? 40 # for eos we need to rewrite the path 41 # TODO strip the username from the path so the CS3 namespace can be mounted 42 # at the files/<username> endpoint? what about migration? separate reva instance 43 files_namespace = "/" 44 45 # similar to the dav/files endpoint we can configure a prefix for the old webdav endpoint 46 # we use the old webdav endpoint to present the cs3 namespace 47 # note: this changes the tree that is rendered at remote.php/webdav from the users home to the cs3 namespace 48 # use webdav_namespace = "/home" to use the old namespace that only exposes the users files 49 # this endpoint should not affect the desktop client sync but will present different folders for the other clients: 50 # - the desktop clients use a hardcoded remote.php/dav/files/<username> if the dav.chunkung capability is present 51 # - the ios ios uses the core.webdav-root capability which points to remote.php/webdav in oc10 52 # - the oc js sdk is hardcoded to the remote.php/webdav so it will see the new tree 53 # - TODO android? no sync ... but will see different tree 54 webdav_namespace = "/" 55 machine_auth_apikey = "change-me-please" 56 57 [http.services.ocs] 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"