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