Merge: f16c6ea3 0c6e8881
Author: Benedikt Kulmann <benedikt@kulmann.biz>
Date:   Tue Nov 10 15:48:27 2020 +0100

    Merge pull request #835 from butonic/fix-820

    fix 820 - race condition
This commit is contained in:
Benedikt Kulmann committed 2020-11-10 15:30:41 +00:00
1 parent 8186359cfe
commit e4fc44faa5
4 files changed
+217 -217

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2020-11-07T07:48:39+0000"
date: "2020-11-10T15:30:21+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis-konnectd
geekdocEditPath: edit/master/docs
+1 -1
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2020-11-07T07:48:43+0000"
date: "2020-11-10T15:30:24+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis-proxy
geekdocEditPath: edit/master/docs
+214 -214
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2020-11-07T07:48:41+0000"
date: "2020-11-10T15:30:22+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/docs/extensions/storage
@@ -57,66 +57,6 @@ Usage: `storage [global options] command [command options] [arguments...]`
## Sub Commands
### storage storage-metadata
Start storage-metadata service
Usage: `storage storage-metadata [command options] [arguments...]`
--debug-addr | $STORAGE_METADATA_DEBUG_ADDR
: Address to bind debug server. Default: `0.0.0.0:9217`.
--grpc-network | $STORAGE_METADATA_GRPC_NETWORK
: Network to use for the storage service, can be 'tcp', 'udp' or 'unix'. Default: `tcp`.
--grpc-addr | $STORAGE_METADATA_GRPC_PROVIDER_ADDR
: Address to bind storage service. Default: `0.0.0.0:9215`.
--data-server-url | $STORAGE_METADATA_DATA_SERVER_URL
: URL of the data-provider the storage-provider uses. Default: `http://localhost:9216`.
--http-network | $STORAGE_METADATA_HTTP_NETWORK
: Network to use for the storage service, can be 'tcp', 'udp' or 'unix'. Default: `tcp`.
--http-addr | $STORAGE_METADATA_HTTP_ADDR
: Address to bind storage service. Default: `0.0.0.0:9216`.
--driver | $STORAGE_METADATA_DRIVER
: storage driver for metadata mount: eg. local, eos, owncloud, ocis or s3. Default: `ocis`.
--gateway-endpoint | $STORAGE_GATEWAY_ENDPOINT
: endpoint to use for the gateway service. Default: `localhost:9142`.
--userprovider-endpoint | $STORAGE_USERPROVIDER_ENDPOINT
: endpoint to use for the userprovider service. Default: `localhost:9144`.
--storage-root | $STORAGE_METADATA_ROOT
: the path to the metadata storage root. Default: `/var/tmp/ocis/metadata`.
### storage sharing
Start sharing service
Usage: `storage sharing [command options] [arguments...]`
--debug-addr | $STORAGE_SHARING_DEBUG_ADDR
: Address to bind debug server. Default: `0.0.0.0:9151`.
--network | $STORAGE_SHARING_GRPC_NETWORK
: Network to use for the storage service, can be 'tcp', 'udp' or 'unix'. Default: `tcp`.
--addr | $STORAGE_SHARING_GRPC_ADDR
: Address to bind storage service. Default: `0.0.0.0:9150`.
--user-driver | $STORAGE_SHARING_USER_DRIVER
: driver to use for the UserShareProvider. Default: `json`.
--user-json-file | $STORAGE_SHARING_USER_JSON_FILE
: file used to persist shares for the UserShareProvider. Default: `/var/tmp/ocis/shares.json`.
--public-driver | $STORAGE_SHARING_PUBLIC_DRIVER
: driver to use for the PublicShareProvider. Default: `json`.
### storage health
Check health status
@@ -144,87 +84,6 @@ Usage: `storage storage [command options] [arguments...]`
--log-color | $STORAGE_LOG_COLOR
: Enable colored logging.
### storage gateway
Start gateway
Usage: `storage gateway [command options] [arguments...]`
--debug-addr | $STORAGE_GATEWAY_DEBUG_ADDR
: Address to bind debug server. Default: `0.0.0.0:9143`.
--transfer-secret | $STORAGE_TRANSFER_SECRET
: Transfer secret for datagateway. Default: `replace-me-with-a-transfer-secret`.
--network | $STORAGE_GATEWAY_GRPC_NETWORK
: Network to use for the storage service, can be 'tcp', 'udp' or 'unix'. Default: `tcp`.
--addr | $STORAGE_GATEWAY_GRPC_ADDR
: Address to bind storage service. Default: `0.0.0.0:9142`.
--endpoint | $STORAGE_GATEWAY_ENDPOINT
: endpoint to use for the storage service. Default: `localhost:9142`.
--commit-share-to-storage-grant | $STORAGE_GATEWAY_COMMIT_SHARE_TO_STORAGE_GRANT
: Commit shares to the share manager. Default: `true`.
--commit-share-to-storage-ref | $STORAGE_GATEWAY_COMMIT_SHARE_TO_STORAGE_REF
: Commit shares to the storage. Default: `true`.
--share-folder | $STORAGE_GATEWAY_SHARE_FOLDER
: mount shares in this folder of the home storage provider. Default: `Shares`.
--disable-home-creation-on-login | $STORAGE_GATEWAY_DISABLE_HOME_CREATION_ON_LOGIN
: Disable creation of home folder on login.
--auth-basic-endpoint | $STORAGE_AUTH_BASIC_ENDPOINT
: endpoint to use for the basic auth provider. Default: `localhost:9146`.
--auth-bearer-endpoint | $STORAGE_AUTH_BEARER_ENDPOINT
: endpoint to use for the bearer auth provider. Default: `localhost:9148`.
--storage-registry-driver | $STORAGE_STORAGE_REGISTRY_DRIVER
: driver of the storage registry. Default: `static`.
--storage-home-provider | $STORAGE_REGISTRY_HOME_PROVIDER
: mount point of the storage provider for user homes in the global namespace. Default: `/home`.
--public-url | $STORAGE_FRONTEND_PUBLIC_URL
: URL to use for the storage service. Default: `https://localhost:9200`.
--datagateway-url | $STORAGE_DATAGATEWAY_PUBLIC_URL
: URL to use for the storage datagateway. Default: `https://localhost:9200/data`.
--userprovider-endpoint | $STORAGE_USERPROVIDER_ENDPOINT
: endpoint to use for the userprovider. Default: `localhost:9144`.
--sharing-endpoint | $STORAGE_SHARING_ENDPOINT
: endpoint to use for the storage service. Default: `localhost:9150`.
--storage-home-endpoint | $STORAGE_HOME_ENDPOINT
: endpoint to use for the home storage. Default: `localhost:9154`.
--storage-home-mount-path | $STORAGE_HOME_MOUNT_PATH
: mount path. Default: `/home`.
--storage-home-mount-id | $STORAGE_HOME_MOUNT_ID
: mount id. Default: `1284d238-aa92-42ce-bdc4-0b0000009154`.
--storage-users-endpoint | $STORAGE_USERS_ENDPOINT
: endpoint to use for the users storage. Default: `localhost:9157`.
--storage-users-mount-path | $STORAGE_USERS_MOUNT_PATH
: mount path. Default: `/users`.
--storage-users-mount-id | $STORAGE_USERS_MOUNT_ID
: mount id. Default: `1284d238-aa92-42ce-bdc4-0b0000009157`.
--public-link-endpoint | $STORAGE_PUBLIC_LINK_ENDPOINT
: endpoint to use for the public links service. Default: `localhost:9178`.
--storage-public-link-mount-path | $STORAGE_PUBLIC_LINK_MOUNT_PATH
: mount path. Default: `/public`.
### storage storage-public-link
Start storage-public-link service
@@ -294,57 +153,6 @@ Usage: `storage storage-home [command options] [arguments...]`
--users-endpoint | $STORAGE_USERPROVIDER_ENDPOINT
: endpoint to use for the storage service. Default: `localhost:9144`.
### storage users
Start users service
Usage: `storage users [command options] [arguments...]`
--debug-addr | $STORAGE_SHARING_DEBUG_ADDR
: Address to bind debug server. Default: `0.0.0.0:9145`.
--network | $STORAGE_USERPROVIDER_NETWORK
: Network to use for the storage service, can be 'tcp', 'udp' or 'unix'. Default: `tcp`.
--addr | $STORAGE_USERPROVIDER_ADDR
: Address to bind storage service. Default: `0.0.0.0:9144`.
--endpoint | $STORAGE_USERPROVIDER_ENDPOINT
: URL to use for the storage service. Default: `localhost:9144`.
--driver | $STORAGE_USERPROVIDER_DRIVER
: user driver: 'demo', 'json', 'ldap', or 'rest'. Default: `ldap`.
--json-config | $STORAGE_USERPROVIDER_JSON
: Path to users.json file.
--rest-client-id | $STORAGE_REST_CLIENT_ID
: User rest driver Client ID.
--rest-client-secret | $STORAGE_REST_CLIENT_SECRET
: User rest driver Client Secret.
--rest-redis-address | $STORAGE_REST_REDIS_ADDRESS
: Address for redis server. Default: `localhost:6379`.
--rest-redis-username | $STORAGE_REST_REDIS_USERNAME
: Username for redis server.
--rest-redis-password | $STORAGE_REST_REDIS_PASSWORD
: Password for redis server.
--rest-id-provider | $STORAGE_REST_ID_PROVIDER
: The OIDC Provider.
--rest-api-base-url | $STORAGE_REST_API_BASE_URL
: Base API Endpoint.
--rest-oidc-token-endpoint | $STORAGE_REST_OIDC_TOKEN_ENDPOINT
: Endpoint to generate token to access the API.
--rest-target-api | $STORAGE_REST_TARGET_API
: The target application.
### storage auth-bearer
Start authprovider for bearer auth
@@ -375,27 +183,6 @@ Usage: `storage auth-bearer [command options] [arguments...]`
--addr | $STORAGE_AUTH_BEARER_GRPC_ADDR
: Address to bind storage service. Default: `0.0.0.0:9148`.
### storage auth-basic
Start authprovider for basic auth
Usage: `storage auth-basic [command options] [arguments...]`
--debug-addr | $STORAGE_AUTH_BASIC_DEBUG_ADDR
: Address to bind debug server. Default: `0.0.0.0:9147`.
--auth-driver | $STORAGE_AUTH_DRIVER
: auth driver: 'demo', 'json' or 'ldap'. Default: `ldap`.
--auth-json | $STORAGE_AUTH_JSON
: Path to users.json file.
--network | $STORAGE_AUTH_BASIC_GRPC_NETWORK
: Network to use for the storage auth-basic service, can be 'tcp', 'udp' or 'unix'. Default: `tcp`.
--addr | $STORAGE_AUTH_BASIC_GRPC_ADDR
: Address to bind storage service. Default: `0.0.0.0:9146`.
### storage frontend
Start frontend service
@@ -486,6 +273,219 @@ Usage: `storage storage-users [command options] [arguments...]`
--users-endpoint | $STORAGE_USERPROVIDER_ENDPOINT
: endpoint to use for the storage service. Default: `localhost:9144`.
### storage gateway
Start gateway
Usage: `storage gateway [command options] [arguments...]`
--debug-addr | $STORAGE_GATEWAY_DEBUG_ADDR
: Address to bind debug server. Default: `0.0.0.0:9143`.
--transfer-secret | $STORAGE_TRANSFER_SECRET
: Transfer secret for datagateway. Default: `replace-me-with-a-transfer-secret`.
--network | $STORAGE_GATEWAY_GRPC_NETWORK
: Network to use for the storage service, can be 'tcp', 'udp' or 'unix'. Default: `tcp`.
--addr | $STORAGE_GATEWAY_GRPC_ADDR
: Address to bind storage service. Default: `0.0.0.0:9142`.
--endpoint | $STORAGE_GATEWAY_ENDPOINT
: endpoint to use for the storage service. Default: `localhost:9142`.
--commit-share-to-storage-grant | $STORAGE_GATEWAY_COMMIT_SHARE_TO_STORAGE_GRANT
: Commit shares to the share manager. Default: `true`.
--commit-share-to-storage-ref | $STORAGE_GATEWAY_COMMIT_SHARE_TO_STORAGE_REF
: Commit shares to the storage. Default: `true`.
--share-folder | $STORAGE_GATEWAY_SHARE_FOLDER
: mount shares in this folder of the home storage provider. Default: `Shares`.
--disable-home-creation-on-login | $STORAGE_GATEWAY_DISABLE_HOME_CREATION_ON_LOGIN
: Disable creation of home folder on login.
--auth-basic-endpoint | $STORAGE_AUTH_BASIC_ENDPOINT
: endpoint to use for the basic auth provider. Default: `localhost:9146`.
--auth-bearer-endpoint | $STORAGE_AUTH_BEARER_ENDPOINT
: endpoint to use for the bearer auth provider. Default: `localhost:9148`.
--storage-registry-driver | $STORAGE_STORAGE_REGISTRY_DRIVER
: driver of the storage registry. Default: `static`.
--storage-home-provider | $STORAGE_REGISTRY_HOME_PROVIDER
: mount point of the storage provider for user homes in the global namespace. Default: `/home`.
--public-url | $STORAGE_FRONTEND_PUBLIC_URL
: URL to use for the storage service. Default: `https://localhost:9200`.
--datagateway-url | $STORAGE_DATAGATEWAY_PUBLIC_URL
: URL to use for the storage datagateway. Default: `https://localhost:9200/data`.
--userprovider-endpoint | $STORAGE_USERPROVIDER_ENDPOINT
: endpoint to use for the userprovider. Default: `localhost:9144`.
--sharing-endpoint | $STORAGE_SHARING_ENDPOINT
: endpoint to use for the storage service. Default: `localhost:9150`.
--storage-home-endpoint | $STORAGE_HOME_ENDPOINT
: endpoint to use for the home storage. Default: `localhost:9154`.
--storage-home-mount-path | $STORAGE_HOME_MOUNT_PATH
: mount path. Default: `/home`.
--storage-home-mount-id | $STORAGE_HOME_MOUNT_ID
: mount id. Default: `1284d238-aa92-42ce-bdc4-0b0000009154`.
--storage-users-endpoint | $STORAGE_USERS_ENDPOINT
: endpoint to use for the users storage. Default: `localhost:9157`.
--storage-users-mount-path | $STORAGE_USERS_MOUNT_PATH
: mount path. Default: `/users`.
--storage-users-mount-id | $STORAGE_USERS_MOUNT_ID
: mount id. Default: `1284d238-aa92-42ce-bdc4-0b0000009157`.
--public-link-endpoint | $STORAGE_PUBLIC_LINK_ENDPOINT
: endpoint to use for the public links service. Default: `localhost:9178`.
--storage-public-link-mount-path | $STORAGE_PUBLIC_LINK_MOUNT_PATH
: mount path. Default: `/public`.
### storage storage-metadata
Start storage-metadata service
Usage: `storage storage-metadata [command options] [arguments...]`
--debug-addr | $STORAGE_METADATA_DEBUG_ADDR
: Address to bind debug server. Default: `0.0.0.0:9217`.
--grpc-network | $STORAGE_METADATA_GRPC_NETWORK
: Network to use for the storage service, can be 'tcp', 'udp' or 'unix'. Default: `tcp`.
--grpc-addr | $STORAGE_METADATA_GRPC_PROVIDER_ADDR
: Address to bind storage service. Default: `0.0.0.0:9215`.
--data-server-url | $STORAGE_METADATA_DATA_SERVER_URL
: URL of the data-provider the storage-provider uses. Default: `http://localhost:9216`.
--http-network | $STORAGE_METADATA_HTTP_NETWORK
: Network to use for the storage service, can be 'tcp', 'udp' or 'unix'. Default: `tcp`.
--http-addr | $STORAGE_METADATA_HTTP_ADDR
: Address to bind storage service. Default: `0.0.0.0:9216`.
--driver | $STORAGE_METADATA_DRIVER
: storage driver for metadata mount: eg. local, eos, owncloud, ocis or s3. Default: `ocis`.
--gateway-endpoint | $STORAGE_GATEWAY_ENDPOINT
: endpoint to use for the gateway service. Default: `localhost:9142`.
--userprovider-endpoint | $STORAGE_USERPROVIDER_ENDPOINT
: endpoint to use for the userprovider service. Default: `localhost:9144`.
--storage-root | $STORAGE_METADATA_ROOT
: the path to the metadata storage root. Default: `/var/tmp/ocis/metadata`.
### storage sharing
Start sharing service
Usage: `storage sharing [command options] [arguments...]`
--debug-addr | $STORAGE_SHARING_DEBUG_ADDR
: Address to bind debug server. Default: `0.0.0.0:9151`.
--network | $STORAGE_SHARING_GRPC_NETWORK
: Network to use for the storage service, can be 'tcp', 'udp' or 'unix'. Default: `tcp`.
--addr | $STORAGE_SHARING_GRPC_ADDR
: Address to bind storage service. Default: `0.0.0.0:9150`.
--user-driver | $STORAGE_SHARING_USER_DRIVER
: driver to use for the UserShareProvider. Default: `json`.
--user-json-file | $STORAGE_SHARING_USER_JSON_FILE
: file used to persist shares for the UserShareProvider. Default: `/var/tmp/ocis/shares.json`.
--public-driver | $STORAGE_SHARING_PUBLIC_DRIVER
: driver to use for the PublicShareProvider. Default: `json`.
### storage auth-basic
Start authprovider for basic auth
Usage: `storage auth-basic [command options] [arguments...]`
--debug-addr | $STORAGE_AUTH_BASIC_DEBUG_ADDR
: Address to bind debug server. Default: `0.0.0.0:9147`.
--auth-driver | $STORAGE_AUTH_DRIVER
: auth driver: 'demo', 'json' or 'ldap'. Default: `ldap`.
--auth-json | $STORAGE_AUTH_JSON
: Path to users.json file.
--network | $STORAGE_AUTH_BASIC_GRPC_NETWORK
: Network to use for the storage auth-basic service, can be 'tcp', 'udp' or 'unix'. Default: `tcp`.
--addr | $STORAGE_AUTH_BASIC_GRPC_ADDR
: Address to bind storage service. Default: `0.0.0.0:9146`.
### storage users
Start users service
Usage: `storage users [command options] [arguments...]`
--debug-addr | $STORAGE_SHARING_DEBUG_ADDR
: Address to bind debug server. Default: `0.0.0.0:9145`.
--network | $STORAGE_USERPROVIDER_NETWORK
: Network to use for the storage service, can be 'tcp', 'udp' or 'unix'. Default: `tcp`.
--addr | $STORAGE_USERPROVIDER_ADDR
: Address to bind storage service. Default: `0.0.0.0:9144`.
--endpoint | $STORAGE_USERPROVIDER_ENDPOINT
: URL to use for the storage service. Default: `localhost:9144`.
--driver | $STORAGE_USERPROVIDER_DRIVER
: user driver: 'demo', 'json', 'ldap', or 'rest'. Default: `ldap`.
--json-config | $STORAGE_USERPROVIDER_JSON
: Path to users.json file.
--rest-client-id | $STORAGE_REST_CLIENT_ID
: User rest driver Client ID.
--rest-client-secret | $STORAGE_REST_CLIENT_SECRET
: User rest driver Client Secret.
--rest-redis-address | $STORAGE_REST_REDIS_ADDRESS
: Address for redis server. Default: `localhost:6379`.
--rest-redis-username | $STORAGE_REST_REDIS_USERNAME
: Username for redis server.
--rest-redis-password | $STORAGE_REST_REDIS_PASSWORD
: Password for redis server.
--rest-id-provider | $STORAGE_REST_ID_PROVIDER
: The OIDC Provider.
--rest-api-base-url | $STORAGE_REST_API_BASE_URL
: Base API Endpoint.
--rest-oidc-token-endpoint | $STORAGE_REST_OIDC_TOKEN_ENDPOINT
: Endpoint to generate token to access the API.
--rest-target-api | $STORAGE_REST_TARGET_API
: The target application.
## Config for the different Storage Drivers
You can set different storage drivers for the Storage Providers. Please check the storage provider configuration.
+1 -1
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2020-11-07T07:48:45+0000"
date: "2020-11-10T15:30:26+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/docs/extensions/webdav