github.com/cs3org/reva/v2@v2.27.7/tests/oc-integration-tests/local/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  [log]
    14  #level = "warn"
    15  #mode = "json"
    16  
    17  [grpc]
    18  address = "0.0.0.0:19000"
    19  
    20  [grpc.tls_settings]
    21  enabled = true
    22  
    23  [grpc.services.gateway]
    24  # registries
    25  authregistrysvc = "localhost:19000"
    26  storageregistrysvc = "localhost:19000"
    27  # user metadata
    28  preferencessvc = "localhost:18000"
    29  userprovidersvc = "localhost:18000"
    30  groupprovidersvc = "localhost:18000"
    31  # an approvider lives on "localhost:18000" as well, see users.toml
    32  # sharing
    33  usershareprovidersvc = "localhost:17000"
    34  publicshareprovidersvc = "localhost:17000"
    35  # ocm
    36  ocmcoresvc = "localhost:14000"
    37  ocmshareprovidersvc = "localhost:14000"
    38  ocminvitemanagersvc = "localhost:14000"
    39  ocmproviderauthorizersvc = "localhost:14000"
    40  # other
    41  commit_share_to_storage_grant = true
    42  share_folder = "Shares"
    43  datagateway = "http://localhost:19001/data"
    44  transfer_shared_secret = "replace-me-with-a-transfer-secret" # for direct uploads
    45  transfer_expires = 6 # give it a moment
    46  #disable_home_creation_on_login = true
    47  link_grants_file = "/tmp/reva/link_grants_file.json"
    48  
    49  
    50  [grpc.services.authregistry]
    51  driver = "static"
    52  
    53  [grpc.services.authregistry.drivers.static.rules]
    54  publicshares = "localhost:17000" # started with the shares.toml
    55  basic = "localhost:18000" # started with the users.toml
    56  bearer = "localhost:20099" # started with the frontend.toml
    57  machine = "localhost:21000" # started with the machine-auth.toml
    58  
    59  [grpc.services.storageregistry]
    60  driver = "spaces"
    61  
    62  [grpc.services.storageregistry.drivers.spaces]
    63  home_template = "/users/{{.Id.OpaqueId}}"
    64  
    65  [grpc.services.storageregistry.drivers.spaces.rules]
    66  "/users/[0-9]" = {"address" = "localhost:11000", "space_type" = "personal", "path_template" = "/users/{{.Space.Owner.Id.OpaqueId}}", "description" = "personal spaces 0-9"}
    67  "/users/[a-f]" = {"address" = "localhost:11010", "space_type" = "personal", "path_template" = "/users/{{.Space.Owner.Id.OpaqueId}}", "description" = "personal spaces a-f"}
    68  
    69  [http]
    70  address = "0.0.0.0:19001"
    71  
    72  [http.services.datagateway]
    73  transfer_shared_secret = "replace-me-with-a-transfer-secret"