github.com/cs3org/reva/v2@v2.27.7/tests/oc-integration-tests/drone/gateway-virtual.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:19000"
    12  
    13  [grpc]
    14  address = "0.0.0.0:19000"
    15  
    16  [grpc.services.gateway]
    17  # registries
    18  authregistrysvc = "localhost:19000"
    19  storageregistrysvc = "localhost:19000"
    20  # user metadata
    21  preferencessvc = "localhost:18000"
    22  userprovidersvc = "localhost:18000"
    23  groupprovidersvc = "localhost:18000"
    24  # an approvider lives on "localhost:18000" as well, see users.toml
    25  # sharing
    26  usershareprovidersvc = "localhost:17000"
    27  publicshareprovidersvc = "localhost:17000"
    28  # ocm
    29  ocmcoresvc = "localhost:14000"
    30  ocmshareprovidersvc = "localhost:14000"
    31  ocminvitemanagersvc = "localhost:14000"
    32  ocmproviderauthorizersvc = "localhost:14000"
    33  # other
    34  commit_share_to_storage_grant = true
    35  share_folder = "Shares"
    36  datagateway = "http://localhost:19001/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 = "/drone/src/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:17000" # started with the shares.toml
    47  basic = "localhost:18000" # started with the users.toml
    48  bearer = "localhost:20099" # started with the frontend.toml
    49  machine = "localhost:21000" # started with the machine-auth.toml
    50  
    51  [grpc.services.storageregistry]
    52  driver = "spaces"
    53  
    54  [grpc.services.storageregistry.drivers.spaces]
    55  home_template = "/users/{{.Id.OpaqueId}}"
    56  
    57  [grpc.services.storageregistry.drivers.spaces.rules]
    58  "/users/[0-9]" = {"address" = "localhost:11000", "space_type" = "personal", "path_template" = "/users/{{.Space.Owner.Id.OpaqueId}}", "description" = "personal spaces 0-9"}
    59  "/users/[a-f]" = {"address" = "localhost:11010", "space_type" = "personal", "path_template" = "/users/{{.Space.Owner.Id.OpaqueId}}", "description" = "personal spaces a-f"}
    60  
    61  [http]
    62  address = "0.0.0.0:19001"
    63  
    64  [http.services.datagateway]
    65  transfer_shared_secret = "replace-me-with-a-transfer-secret"