github.com/cs3org/reva/v2@v2.27.7/examples/oc-phoenix/gateway.toml (about) 1 [shared] 2 jwt_secret = "Pive-Fumkiu4" 3 gatewaysvc = "localhost:19000" 4 5 # This gateway.toml config file will start a reva service that: 6 # - serves as a gateway for all requests 7 # - looks up the storageprovider using a storageregistry 8 # - looks up the authprovider using an authregistry 9 # - serves the gateway on grpc port 19000 10 # - serves http datagateway on port 19001 11 # - /data - datagateway: file up and download 12 [grpc] 13 address = "0.0.0.0:19000" 14 15 [grpc.services.gateway] 16 # registries 17 authregistrysvc = "localhost:19000" 18 storageregistrysvc = "localhost:19000" 19 # user metadata 20 preferencessvc = "localhost:18000" 21 userprovidersvc = "localhost:18000" 22 # an approvider lives on "localhost:18000" as well, see users.toml 23 # sharing 24 usershareprovidersvc = "localhost:17000" 25 publicshareprovidersvc = "localhost:17000" 26 # ocm 27 ocmcoresvc = "localhost:13000" 28 ocmshareprovidersvc = "localhost:13000" 29 ocminvitemanagersvc = "localhost:13000" 30 ocmproviderauthorizersvc = "localhost:13000" 31 # other 32 commit_share_to_storage_grant = true 33 datagateway = "http://localhost:19001/data" 34 transfer_shared_secret = "replace-me-with-a-transfer-secret" # for direct uploads 35 transfer_expires = 6 # give it a moment 36 #disable_home_creation_on_login = true 37 38 [grpc.services.authregistry] 39 driver = "static" 40 41 [grpc.services.authregistry.drivers.static.rules] 42 basic = "localhost:18000" # started with the users.toml 43 bearer = "localhost:20099" # started with the frontend.toml 44 45 [grpc.services.storageregistry] 46 driver = "static" 47 48 [grpc.services.storageregistry.drivers.static] 49 home_provider = "/home" 50 51 [grpc.services.storageregistry.drivers.static.rules] 52 53 # mount a home storage provider that uses a context based path wrapper 54 # to jail users into their home dir 55 "/home" = {"address" = "localhost:12000"} 56 57 # mount a storage provider without a path wrapper for direct access to users. 58 "/oc" = {"address" = "localhost:11000"} 59 "123e4567-e89b-12d3-a456-426655440000" = {"address" = "localhost:11000"} 60 # another mount point might be "/projects/" 61 62 [http] 63 address = "0.0.0.0:19001" 64 65 [http.services.datagateway] 66 transfer_shared_secret = "replace-me-with-a-transfer-secret"