github.com/cs3org/reva/v2@v2.27.7/tests/oc-integration-tests/local-mesh/gateway.toml (about) 1 # This config file will start a reva service that: 2 # - serves as a gateway for all CS3 requests 3 # - looks up the storageprovider using a storageregistry 4 # - looks up the authprovider using an authregistry 5 # - serves the gateway on grpc port 19000 6 # - serves http datagateway on port 19001 7 # - /data - datagateway: file up and download 8 9 [shared] 10 jwt_secret = "Pive-Fumkiu4" 11 gatewaysvc = "localhost:39000" 12 13 [grpc] 14 address = "0.0.0.0:39000" 15 16 [grpc.services.gateway] 17 # registries 18 authregistrysvc = "localhost:39000" 19 storageregistrysvc = "localhost:39000" 20 # user metadata 21 preferencessvc = "localhost:38000" 22 userprovidersvc = "localhost:38000" 23 groupprovidersvc = "localhost:38000" 24 # an approvider lives on "localhost:38000" as well, see users.toml 25 # sharing 26 usershareprovidersvc = "localhost:37000" 27 publicshareprovidersvc = "localhost:37000" 28 # ocm 29 ocmcoresvc = "localhost:34000" 30 ocmshareprovidersvc = "localhost:34000" 31 ocminvitemanagersvc = "localhost:34000" 32 ocmproviderauthorizersvc = "localhost:34000" 33 # other 34 commit_share_to_storage_grant = true 35 share_folder = "Shares" 36 datagateway = "http://localhost:39001/data" 37 transfer_shared_secret = "replace-me-with-a-transfer-secret" # for direct uploads 38 transfer_expires = 6 # give it a moment 39 #disable_home_creation_on_login = true 40 link_grants_file = "/var/tmp/reva/link_grants_file.json" 41 42 [grpc.services.authregistry] 43 driver = "static" 44 45 [grpc.services.authregistry.drivers.static.rules] 46 publicshares = "localhost:37000" # started with the shares.toml 47 basic = "localhost:38000" # started with the users.toml 48 49 [grpc.services.storageregistry] 50 driver = "static" 51 52 [grpc.services.storageregistry.drivers.static] 53 home_provider = "/home" 54 55 [grpc.services.storageregistry.drivers.static.rules] 56 57 # mount a home storage provider that uses a context based path wrapper 58 # to jail users into their home dir 59 "/home" = {"address" = "localhost:32000"} 60 61 # mount a storage provider without a path wrapper for direct access to users. 62 "/users" = {"address" = "localhost:31000"} 63 "123e4567-e89b-12d3-a456-426655440000" = {"address" = "localhost:31000"} 64 65 # the /virtual namespace is only accessible via the frontend-global service 66 "/virtual/[a-k]" = {"address" = "localhost:31100"} 67 "virtual-a-k" = {"address" = "localhost:31100"} 68 "/virtual/[l-z]" = {"address" = "localhost:31110"} 69 "virtual-l-z" = {"address" = "localhost:31110"} 70 71 # another mount point might be "/projects/" 72 73 "/public" = {"address" = "localhost:33000"} 74 75 [http] 76 address = "0.0.0.0:39001" 77 78 [http.services.datagateway] 79 transfer_shared_secret = "replace-me-with-a-transfer-secret"