From a13ad92669e00565c7859df0cd718b62de8a4549 Mon Sep 17 00:00:00 2001 From: Alex Unger <6905948+refs@users.noreply.github.com> Date: Tue, 23 Nov 2021 12:21:44 +0000 Subject: [PATCH] commit 1befac2a8f9a1da14ddd410cf4882d6ddda17e9f Merge: 3bc413b2 43af041a Author: Alex Unger <6905948+refs@users.noreply.github.com> Date: Tue Nov 23 13:18:39 2021 +0100 Merge pull request #2708 from owncloud/try-gookikt-config --- extensions/accounts/configuration.md | 997 ---- extensions/glauth/configuration.md | 289 -- extensions/graph-explorer/configuration.md | 189 - extensions/graph/configuration.md | 199 - extensions/idp/configuration.md | 488 -- extensions/ocs/configuration.md | 285 -- extensions/proxy/configuration.md | 360 -- extensions/settings/configuration.md | 278 -- extensions/storage/configuration.md | 4907 ------------------- extensions/store/configuration.md | 215 - extensions/thumbnails/configuration.md | 250 - extensions/web/configuration.md | 249 - extensions/webdav/configuration.md | 259 - ocis/config.md | 173 + ocis/configuration.md | 382 -- ocis/deployment/basic-remote-setup.md | 2 +- ocis/getting-started/_index.md | 2 +- ocis/static/ocis-config-redesign.drawio.svg | 4 + 18 files changed, 179 insertions(+), 9349 deletions(-) delete mode 100644 extensions/accounts/configuration.md delete mode 100644 extensions/glauth/configuration.md delete mode 100644 extensions/graph-explorer/configuration.md delete mode 100644 extensions/graph/configuration.md delete mode 100644 extensions/idp/configuration.md delete mode 100644 extensions/ocs/configuration.md delete mode 100644 extensions/proxy/configuration.md delete mode 100644 extensions/settings/configuration.md delete mode 100644 extensions/storage/configuration.md delete mode 100644 extensions/store/configuration.md delete mode 100644 extensions/thumbnails/configuration.md delete mode 100644 extensions/web/configuration.md delete mode 100644 extensions/webdav/configuration.md create mode 100644 ocis/config.md delete mode 100644 ocis/configuration.md create mode 100644 ocis/static/ocis-config-redesign.drawio.svg diff --git a/extensions/accounts/configuration.md b/extensions/accounts/configuration.md deleted file mode 100644 index 2befcf62ba4..00000000000 --- a/extensions/accounts/configuration.md +++ /dev/null @@ -1,997 +0,0 @@ ---- -title: "Configuration" -date: "2021-11-23T10:23:31+0000" -weight: 20 -geekdocRepo: https://github.com/owncloud/ocis -geekdocEditPath: edit/master/accounts/templates -geekdocFilePath: CONFIGURATION.tmpl ---- - -{{< toc >}} - -## Configuration - -### Configuration using config files - -Out of the box extensions will attempt to read configuration details from: - -```console -/etc/ocis -$HOME/.ocis -./config -``` - -For this configuration to be picked up, have a look at your extension `root` command and look for which default config name it has assigned. *i.e: ocis-accounts reads `accounts.json | yaml | toml ...`*. - -So far we support the file formats `JSON` and `YAML`, if you want to get a full example configuration just take a look at [our repository](https://github.com/owncloud/ocis/tree/master/accounts/config), there you can always see the latest configuration format. These example configurations include all available options and the default values. The configuration file will be automatically loaded if it's placed at `/etc/ocis/ocis.yml`, `${HOME}/.ocis/ocis.yml` or `$(pwd)/config/ocis.yml`. - -### Environment variables - -If you prefer to configure the service with environment variables you can see the available variables below. - -If multiple variables are listed for one option, they are in order of precedence. This means the leftmost variable will always win if given. - -### Command-line flags - -If you prefer to configure the service with command-line flags you can see the available variables below. Command line flags are only working when calling the subcommand directly. - -### accounts add - -Create a new account - -Usage: `accounts add [command options] [arguments...]` - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --grpc-namespace | $ACCOUNTS_GRPC_NAMESPACE -: Set the base namespace for the grpc namespace. Default: `"com.owncloud.api"`. - - --name | $ACCOUNTS_NAME -: service name. Default: `"accounts"`. - - --enabled | -: Enable the account. - - --displayname | -: Set the displayname for the account. - - --username | -: Username will be written to preferred-name and on_premises_sam_account_name. - - --preferred-name | -: Set the preferred-name for the account. - - --on-premises-sam-account-name | -: Set the on-premises-sam-account-name. - - --uidnumber | -: Set the uidnumber for the account. - - --gidnumber | -: Set the gidnumber for the account. - - --mail | -: Set the mail for the account. - - --description | -: Set the description for the account. - - --password | -: Set the password for the account. - - --password-policies | -: Possible policies: DisableStrongPassword, DisablePasswordExpiration. - - --force-password-change | -: Force password change on next sign-in. - - --force-password-change-mfa | -: Force password change on next sign-in with mfa. - - - - - - - -### accounts rebuildIndex - -Rebuilds the service's index, i.e. deleting and then re-adding all existing documents - -Usage: `accounts rebuildIndex [command options] [arguments...]` - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -### accounts server - -Start ocis accounts service - -Usage: `accounts server [command options] [arguments...]` - - - - - - --log-file | $ACCOUNTS_LOG_FILE , $OCIS_LOG_FILE -: Enable log to file. - - --tracing-enabled | $ACCOUNTS_TRACING_ENABLED , $OCIS_TRACING_ENABLED -: Enable sending traces. - - --tracing-type | $ACCOUNTS_TRACING_TYPE , $OCIS_TRACING_TYPE -: Tracing backend type. Default: `"jaeger"`. - - --tracing-endpoint | $ACCOUNTS_TRACING_ENDPOINT , $OCIS_TRACING_ENDPOINT -: Endpoint for the agent. Default: `""`. - - --tracing-collector | $ACCOUNTS_TRACING_COLLECTOR , $OCIS_TRACING_COLLECTOR -: Endpoint for the collector. Default: `""`. - - --tracing-service | $ACCOUNTS_TRACING_SERVICE -: Service name for tracing. Default: `"accounts"`. - - --http-namespace | $ACCOUNTS_HTTP_NAMESPACE -: Set the base namespace for the http namespace. Default: `"com.owncloud.web"`. - - --http-addr | $ACCOUNTS_HTTP_ADDR -: Address to bind http server. Default: `"127.0.0.1:9181"`. - - --http-root | $ACCOUNTS_HTTP_ROOT -: Root path of http server. Default: `"/"`. - - --http-cache-ttl | $ACCOUNTS_CACHE_TTL -: Set the static assets caching duration in seconds. Default: `604800`. - - --cors-allowed-origins | $ACCOUNTS_CORS_ALLOW_ORIGINS , $OCIS_CORS_ALLOW_ORIGINS -: Set the allowed CORS origins. Default: `cli.NewStringSlice("*")`. - - --cors-allowed-methods | $ACCOUNTS_CORS_ALLOW_METHODS , $OCIS_CORS_ALLOW_METHODS -: Set the allowed CORS origins. Default: `cli.NewStringSlice("GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS")`. - - --cors-allowed-headers | $ACCOUNTS_CORS_ALLOW_HEADERS , $OCIS_CORS_ALLOW_HEADERS -: Set the allowed CORS origins. Default: `cli.NewStringSlice("Authorization", "Origin", "Content-Type", "Accept", "X-Requested-With")`. - - --cors-allow-credentials | $ACCOUNTS_CORS_ALLOW_CREDENTIALS , $OCIS_CORS_ALLOW_CREDENTIALS -: Allow credentials for CORS. Default: `true`. - - --grpc-namespace | $ACCOUNTS_GRPC_NAMESPACE -: Set the base namespace for the grpc namespace. Default: `"com.owncloud.api"`. - - --grpc-addr | $ACCOUNTS_GRPC_ADDR -: Address to bind grpc server. Default: `"127.0.0.1:9180"`. - - --name | $ACCOUNTS_NAME -: service name. Default: `"accounts"`. - - --accounts-hash-difficulty | $ACCOUNTS_HASH_DIFFICULTY -: accounts password hash difficulty. Default: `11`. - - --demo-users-and-groups | $ACCOUNTS_DEMO_USERS_AND_GROUPS -: Enable demo users and groups. Default: `true`. - - --asset-path | $ACCOUNTS_ASSET_PATH -: Path to custom assets. Default: `""`. - - --jwt-secret | $ACCOUNTS_JWT_SECRET , $OCIS_JWT_SECRET -: Used to create JWT to talk to reva, should equal reva's jwt-secret. Default: `"Pive-Fumkiu4"`. - - --storage-backend | $ACCOUNTS_STORAGE_BACKEND -: Which backend to use to store accounts data (CS3 or disk). Default: `"CS3"`. - - --storage-disk-path | $ACCOUNTS_STORAGE_DISK_PATH -: Path on the local disk to store accounts data when backend is set to disk. Default: `flags.OverrideDefaultString(cfg.Repo.Disk.Path, path.Join(defaults.BaseDataPath(), "accounts"))`. - - --storage-cs3-provider-addr | $ACCOUNTS_STORAGE_CS3_PROVIDER_ADDR -: bind address for the metadata storage provider. Default: `"localhost:9215"`. - - --storage-cs3-data-url | $ACCOUNTS_STORAGE_CS3_DATA_URL -: http endpoint of the metadata storage. Default: `"http://localhost:9216"`. - - --storage-cs3-data-prefix | $ACCOUNTS_STORAGE_CS3_DATA_PREFIX -: path prefix for the http endpoint of the metadata storage, without leading slash. Default: `"data"`. - - --storage-cs3-jwt-secret | $ACCOUNTS_STORAGE_CS3_JWT_SECRET , $OCIS_JWT_SECRET -: Used to create JWT to talk to reva, should equal reva's jwt-secret. Default: `"Pive-Fumkiu4"`. - - --service-user-uuid | $ACCOUNTS_SERVICE_USER_UUID -: uuid of the internal service user (required on EOS). Default: `"95cb8724-03b2-11eb-a0a6-c33ef8ef53ad"`. - - --service-user-username | $ACCOUNTS_SERVICE_USER_USERNAME -: username of the internal service user (required on EOS). Default: `""`. - - --service-user-uid | $ACCOUNTS_SERVICE_USER_UID -: uid of the internal service user (required on EOS). Default: `0`. - - --service-user-gid | $ACCOUNTS_SERVICE_USER_GID -: gid of the internal service user (required on EOS). Default: `0`. - - --uid-index-lower-bound | $ACCOUNTS_UID_INDEX_LOWER_BOUND -: define a starting point for the account UID. Default: `0`. - - --gid-index-lower-bound | $ACCOUNTS_GID_INDEX_LOWER_BOUND -: define a starting point for the account GID. Default: `1000`. - - --uid-index-upper-bound | $ACCOUNTS_UID_INDEX_UPPER_BOUND -: define an ending point for the account UID. Default: `0`. - - --gid-index-upper-bound | $ACCOUNTS_GID_INDEX_UPPER_BOUND -: define an ending point for the account GID. Default: `1000`. - - --extensions | -: Run specific extensions during supervised mode. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -### accounts update - -Make changes to an existing account - -Usage: `accounts update [command options] [arguments...]` - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --grpc-namespace | $ACCOUNTS_GRPC_NAMESPACE -: Set the base namespace for the grpc namespace. Default: `"com.owncloud.api"`. - - --name | $ACCOUNTS_NAME -: service name. Default: `"accounts"`. - - --enabled | -: Enable the account. - - --displayname | -: Set the displayname for the account. - - --preferred-name | -: Set the preferred-name for the account. - - --on-premises-sam-account-name | -: Set the on-premises-sam-account-name. - - --uidnumber | -: Set the uidnumber for the account. - - --gidnumber | -: Set the gidnumber for the account. - - --mail | -: Set the mail for the account. - - --description | -: Set the description for the account. - - --password | -: Set the password for the account. - - --password-policies | -: Possible policies: DisableStrongPassword, DisablePasswordExpiration. - - --force-password-change | -: Force password change on next sign-in. - - --force-password-change-mfa | -: Force password change on next sign-in with mfa. - - - - - - - - - - - - - - - - - - - - - - -### accounts inspect - -Show detailed data on an existing account - -Usage: `accounts inspect [command options] [arguments...]` - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --grpc-namespace | $ACCOUNTS_GRPC_NAMESPACE -: Set the base namespace for the grpc namespace. Default: `"com.owncloud.api"`. - - --name | $ACCOUNTS_NAME -: service name. Default: `"accounts"`. - -### accounts list - -List existing accounts - -Usage: `accounts list [command options] [arguments...]` - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --grpc-namespace | $ACCOUNTS_GRPC_NAMESPACE -: Set the base namespace for the grpc namespace. Default: `"com.owncloud.api"`. - - --name | $ACCOUNTS_NAME -: service name. Default: `"accounts"`. - - - - - -### accounts remove - -Removes an existing account - -Usage: `accounts remove [command options] [arguments...]` - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --grpc-namespace | $ACCOUNTS_GRPC_NAMESPACE -: Set the base namespace for the grpc namespace. Default: `"com.owncloud.api"`. - - --name | $ACCOUNTS_NAME -: service name. Default: `"accounts"`. - - - -### accounts ocis-accounts - -Provide accounts and groups for oCIS - -Usage: `accounts ocis-accounts [command options] [arguments...]` - - --log-level | $ACCOUNTS_LOG_LEVEL , $OCIS_LOG_LEVEL -: Set logging level. - - --log-pretty | $ACCOUNTS_LOG_PRETTY , $OCIS_LOG_PRETTY -: Enable pretty logging. - - --log-color | $ACCOUNTS_LOG_COLOR , $OCIS_LOG_COLOR -: Enable colored logging. - - --extensions | -: Run specific extensions during supervised mode. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -### accounts version - -Print the versions of the running instances - -Usage: `accounts version [command options] [arguments...]` - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --grpc-namespace | $ACCOUNTS_GRPC_NAMESPACE -: Set the base namespace for the grpc namespace. Default: `"com.owncloud.api"`. - - --name | $ACCOUNTS_NAME -: service name. Default: `"accounts"`. - - - - - diff --git a/extensions/glauth/configuration.md b/extensions/glauth/configuration.md deleted file mode 100644 index cbc37c7608c..00000000000 --- a/extensions/glauth/configuration.md +++ /dev/null @@ -1,289 +0,0 @@ ---- -title: "Configuration" -date: "2021-11-23T10:24:25+0000" -weight: 20 -geekdocRepo: https://github.com/owncloud/ocis -geekdocEditPath: edit/master/glauth/templates -geekdocFilePath: CONFIGURATION.tmpl ---- - -{{< toc >}} - -## Configuration - -### Configuration using config files - -Out of the box extensions will attempt to read configuration details from: - -```console -/etc/ocis -$HOME/.ocis -./config -``` - -For this configuration to be picked up, have a look at your extension `root` command and look for which default config name it has assigned. *i.e: ocis-glauth reads `glauth.json | yaml | toml ...`*. - -So far we support the file formats `JSON` and `YAML`, if you want to get a full example configuration just take a look at [our repository](https://github.com/owncloud/ocis/tree/master/glauth/config), there you can always see the latest configuration format. These example configurations include all available options and the default values. The configuration file will be automatically loaded if it's placed at `/etc/ocis/ocis.yml`, `${HOME}/.ocis/ocis.yml` or `$(pwd)/config/ocis.yml`. - -### Environment variables - -If you prefer to configure the service with environment variables you can see the available variables below. - -If multiple variables are listed for one option, they are in order of precedence. This means the leftmost variable will always win if given. - -### Command-line flags - -If you prefer to configure the service with command-line flags you can see the available variables below. Command line flags are only working when calling the subcommand directly. - -### glauth health - -Check health status - -Usage: `glauth health [command options] [arguments...]` - - - - - --debug-addr | $GLAUTH_DEBUG_ADDR -: Address to debug endpoint. Default: `"127.0.0.1:9129"`. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -### glauth ocis-glauth - -Serve GLAuth API for oCIS - -Usage: `glauth ocis-glauth [command options] [arguments...]` - - --log-level | $GLAUTH_LOG_LEVEL , $OCIS_LOG_LEVEL -: Set logging level. - - --log-pretty | $GLAUTH_LOG_PRETTY , $OCIS_LOG_PRETTY -: Enable pretty logging. - - --log-color | $GLAUTH_LOG_COLOR , $OCIS_LOG_COLOR -: Enable colored logging. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -### glauth server - -Start integrated server - -Usage: `glauth server [command options] [arguments...]` - - - - - - --log-file | $GLAUTH_LOG_FILE , $OCIS_LOG_FILE -: Enable log to file. - - --config-file | $GLAUTH_CONFIG_FILE -: Path to config file. Default: `""`. - - --tracing-enabled | $GLAUTH_TRACING_ENABLED , $OCIS_TRACING_ENABLED -: Enable sending traces. - - --tracing-type | $GLAUTH_TRACING_TYPE , $OCIS_TRACING_TYPE -: Tracing backend type. Default: `"jaeger"`. - - --tracing-endpoint | $GLAUTH_TRACING_ENDPOINT , $OCIS_TRACING_ENDPOINT -: Endpoint for the agent. Default: `""`. - - --tracing-collector | $GLAUTH_TRACING_COLLECTOR , $OCIS_TRACING_COLLECTOR -: Endpoint for the collector. Default: `""`. - - --tracing-service | $GLAUTH_TRACING_SERVICE -: Service name for tracing. Default: `"glauth"`. - - --debug-addr | $GLAUTH_DEBUG_ADDR -: Address to bind debug server. Default: `"127.0.0.1:9129"`. - - --debug-token | $GLAUTH_DEBUG_TOKEN -: Token to grant metrics access. Default: `""`. - - --debug-pprof | $GLAUTH_DEBUG_PPROF -: Enable pprof debugging. - - --debug-zpages | $GLAUTH_DEBUG_ZPAGES -: Enable zpages debugging. - - --role-bundle-id | $GLAUTH_ROLE_BUNDLE_ID -: roleid used to make internal grpc requests. Default: `"71881883-1768-46bd-a24d-a356a2afdf7f"`. - - --ldap-addr | $GLAUTH_LDAP_ADDR -: Address to bind ldap server. Default: `"127.0.0.1:9125"`. - - --ldap-enabled | $GLAUTH_LDAP_ENABLED -: Enable ldap server. Default: `true`. - - --ldaps-addr | $GLAUTH_LDAPS_ADDR -: Address to bind ldaps server. Default: `"127.0.0.1:9126"`. - - --ldaps-enabled | $GLAUTH_LDAPS_ENABLED -: Enable ldaps server. Default: `true`. - - --ldaps-cert | $GLAUTH_LDAPS_CERT -: path to ldaps certificate in PEM format. Default: `flags.OverrideDefaultString(cfg.Ldaps.Cert, path.Join(defaults.BaseDataPath(), "ldap", "ldap.crt"))`. - - --ldaps-key | $GLAUTH_LDAPS_KEY -: path to ldaps key in PEM format. Default: `flags.OverrideDefaultString(cfg.Ldaps.Key, path.Join(defaults.BaseDataPath(), "ldap", "ldap.key"))`. - - --backend-basedn | $GLAUTH_BACKEND_BASEDN -: base distinguished name to expose. Default: `"dc=ocis,dc=test"`. - - --backend-name-format | $GLAUTH_BACKEND_NAME_FORMAT -: name attribute for entries to expose. typically cn or uid. Default: `"cn"`. - - --backend-group-format | $GLAUTH_BACKEND_GROUP_FORMAT -: name attribute for entries to expose. typically ou, cn or dc. Default: `"ou"`. - - --backend-ssh-key-attr | $GLAUTH_BACKEND_SSH_KEY_ATTR -: ssh key attribute for entries to expose. Default: `"sshPublicKey"`. - - --backend-datastore | $GLAUTH_BACKEND_DATASTORE -: datastore to use as the backend. one of accounts, ldap or owncloud. Default: `"accounts"`. - - --backend-insecure | $GLAUTH_BACKEND_INSECURE -: Allow insecure requests to the datastore. Default: `false`. - - --backend-server | $GLAUTH_BACKEND_SERVERS -: `--backend-server https://demo.owncloud.com/apps/graphapi/v1.0 [--backend-server "https://demo2.owncloud.com/apps/graphapi/v1.0"]`. Default: `cli.NewStringSlice()`. - - --backend-use-graphapi | $GLAUTH_BACKEND_USE_GRAPHAPI -: use Graph API, only for owncloud datastore. Default: `true`. - - --fallback-basedn | $GLAUTH_FALLBACK_BASEDN -: base distinguished name to expose. Default: `"dc=ocis,dc=test"`. - - --fallback-name-format | $GLAUTH_FALLBACK_NAME_FORMAT -: name attribute for entries to expose. typically cn or uid. Default: `"cn"`. - - --fallback-group-format | $GLAUTH_FALLBACK_GROUP_FORMAT -: name attribute for entries to expose. typically ou, cn or dc. Default: `"ou"`. - - --fallback-ssh-key-attr | $GLAUTH_FALLBACK_SSH_KEY_ATTR -: ssh key attribute for entries to expose. Default: `"sshPublicKey"`. - - --fallback-datastore | $GLAUTH_FALLBACK_DATASTORE -: datastore to use as the fallback. one of accounts, ldap or owncloud. Default: `""`. - - --fallback-insecure | $GLAUTH_FALLBACK_INSECURE -: Allow insecure requests to the datastore. Default: `false`. - - --fallback-server | $GLAUTH_FALLBACK_SERVERS -: `--fallback-server http://internal1.example.com [--fallback-server http://internal2.example.com]`. Default: `cli.NewStringSlice("https://demo.owncloud.com/apps/graphapi/v1.0")`. - - --fallback-use-graphapi | $GLAUTH_FALLBACK_USE_GRAPHAPI -: use Graph API, only for owncloud datastore. Default: `true`. - - --extensions | -: Run specific extensions during supervised mode. This flag is set by the runtime. - diff --git a/extensions/graph-explorer/configuration.md b/extensions/graph-explorer/configuration.md deleted file mode 100644 index 3452fd2ad7c..00000000000 --- a/extensions/graph-explorer/configuration.md +++ /dev/null @@ -1,189 +0,0 @@ ---- -title: "Configuration" -date: "2021-11-23T10:24:25+0000" -weight: 20 -geekdocRepo: https://github.com/owncloud/ocis -geekdocEditPath: edit/master/graph-explorer/templates -geekdocFilePath: CONFIGURATION.tmpl ---- - -{{< toc >}} - -## Configuration - -### Configuration using config files - -Out of the box extensions will attempt to read configuration details from: - -```console -/etc/ocis -$HOME/.ocis -./config -``` - -For this configuration to be picked up, have a look at your extension `root` command and look for which default config name it has assigned. *i.e: ocis-proxy reads `proxy.json | yaml | toml ...`*. - -So far we support the file formats `JSON` and `YAML`, if you want to get a full example configuration just take a look at [our repository](https://github.com/owncloud/ocis/tree/master/graph-explorer/config), there you can always see the latest configuration format. These example configurations include all available options and the default values. The configuration file will be automatically loaded if it's placed at `/etc/ocis/ocis.yml`, `${HOME}/.ocis/ocis.yml` or `$(pwd)/config/ocis.yml`. - -### Environment variables - -If you prefer to configure the service with environment variables you can see the available variables below. - -If multiple variables are listed for one option, they are in order of precedence. This means the leftmost variable will always win if given. - -### Command-line flags - -If you prefer to configure the service with command-line flags you can see the available variables below. Command line flags are only working when calling the subcommand directly. - -## Root Command - -Serve Graph-Explorer for oCIS - -Usage: `graph-explorer [global options] command [command options] [arguments...]` - - --log-level | $GRAPH_EXPLORER_LOG_LEVEL , $OCIS_LOG_LEVEL -: Set logging level. - - --log-pretty | $GRAPH_EXPLORER_LOG_PRETTY , $OCIS_LOG_PRETTY -: Enable pretty logging. - - --log-color | $GRAPH_EXPLORER_LOG_COLOR , $OCIS_LOG_COLOR -: Enable colored logging. - - - - - - - - - - - - - - - - - - - - -## Sub Commands - -### graph-explorer health - -Check health status - -Usage: `graph-explorer health [command options] [arguments...]` - - - - - --debug-addr | $GRAPH_EXPLORER_DEBUG_ADDR -: Address to debug endpoint. Default: `"127.0.0.1:9136"`. - - - - - - - - - - - - - - - - - - - -### graph-explorer server - -Start integrated server - -Usage: `graph-explorer server [command options] [arguments...]` - - - - - - --log-file | $GRAPH_EXPLORER_LOG_FILE , $OCIS_LOG_FILE -: Enable log to file. - - --tracing-enabled | $GRAPH_EXPLORER_TRACING_ENABLED , $OCIS_TRACING_ENABLED -: Enable sending traces. - - --tracing-type | $GRAPH_EXPLORER_TRACING_TYPE , $OCIS_TRACING_TYPE -: Tracing backend type. Default: `"jaeger"`. - - --tracing-endpoint | $GRAPH_EXPLORER_TRACING_ENDPOINT , $OCIS_TRACING_ENDPOINT -: Endpoint for the agent. Default: `""`. - - --tracing-collector | $GRAPH_EXPLORER_TRACING_COLLECTOR , $OCIS_TRACING_COLLECTOR -: Endpoint for the collector. Default: `""`. - - --tracing-service | $GRAPH_EXPLORER_TRACING_SERVICE -: Service name for tracing. Default: `"graph-explorer"`. - - --debug-addr | $GRAPH_EXPLORER_DEBUG_ADDR -: Address to bind debug server. Default: `"127.0.0.1:9136"`. - - --debug-token | $GRAPH_EXPLORER_DEBUG_TOKEN -: Token to grant metrics access. Default: `""`. - - --debug-pprof | $GRAPH_EXPLORER_DEBUG_PPROF -: Enable pprof debugging. - - --debug-zpages | $GRAPH_EXPLORER_DEBUG_ZPAGES -: Enable zpages debugging. - - --http-addr | $GRAPH_EXPLORER_HTTP_ADDR -: Address to bind http server. Default: `"127.0.0.1:9135"`. - - --http-root | $GRAPH_EXPLORER_HTTP_ROOT -: Root path of http server. Default: `"/graph-explorer"`. - - --http-namespace | $GRAPH_EXPLORER_NAMESPACE -: Set the base namespace for the http namespace. Default: `"com.owncloud.web"`. - - --issuer | $GRAPH_EXPLORER_ISSUER , $OCIS_URL -: Set the OpenID Connect Provider. Default: `"https://localhost:9200"`. - - --client-id | $GRAPH_EXPLORER_CLIENT_ID -: Set the OpenID Client ID to send to the issuer. Default: `"ocis-explorer.js"`. - - --graph-url-base | $GRAPH_EXPLORER_GRAPH_URL_BASE , $OCIS_URL -: Set the base url to the graph api service. Default: `"https://localhost:9200"`. - - --graph-url-path | $GRAPH_EXPLORER_GRAPH_URL_PATH -: Set the url path to the graph api service. Default: `"/graph"`. - - --extensions | -: Run specific extensions during supervised mode. This flag is set by the runtime. - diff --git a/extensions/graph/configuration.md b/extensions/graph/configuration.md deleted file mode 100644 index fd6ed5232ec..00000000000 --- a/extensions/graph/configuration.md +++ /dev/null @@ -1,199 +0,0 @@ ---- -title: "Configuration" -date: "2021-11-23T10:24:25+0000" -weight: 20 -geekdocRepo: https://github.com/owncloud/ocis -geekdocEditPath: edit/master/graph/templates -geekdocFilePath: CONFIGURATION.tmpl ---- - -{{< toc >}} - -## Configuration - -### Configuration using config files - -Out of the box extensions will attempt to read configuration details from: - -```console -/etc/ocis -$HOME/.ocis -./config -``` - -For this configuration to be picked up, have a look at your extension `root` command and look for which default config name it has assigned. *i.e: ocis-proxy reads `proxy.json | yaml | toml ...`*. - -So far we support the file formats `JSON` and `YAML`, if you want to get a full example configuration just take a look at [our repository](https://github.com/owncloud/ocis/tree/master/graph/config), there you can always see the latest configuration format. These example configurations include all available options and the default values. The configuration file will be automatically loaded if it's placed at `/etc/ocis/ocis.yml`, `${HOME}/.ocis/ocis.yml` or `$(pwd)/config/ocis.yml`. - -### Environment variables - -If you prefer to configure the service with environment variables you can see the available variables below. - -If multiple variables are listed for one option, they are in order of precedence. This means the leftmost variable will always win if given. - -### Command-line flags - -If you prefer to configure the service with command-line flags you can see the available variables below. Command line flags are only working when calling the subcommand directly. - -### graph health - -Check health status - -Usage: `graph health [command options] [arguments...]` - - - - - - --debug-addr | $GRAPH_DEBUG_ADDR -: Address to debug endpoint. Default: `"127.0.0.1:9124"`. - - - - - - - - - - - - - - - - - - - - -### graph ocis-graph - -Serve Graph API for oCIS - -Usage: `graph ocis-graph [command options] [arguments...]` - - --config-file | $GRAPH_CONFIG_FILE -: Path to config file. Default: `""`. - - --log-level | $GRAPH_LOG_LEVEL , $OCIS_LOG_LEVEL -: Set logging level. - - --log-pretty | $GRAPH_LOG_PRETTY , $OCIS_LOG_PRETTY -: Enable pretty logging. - - --log-color | $GRAPH_LOG_COLOR , $OCIS_LOG_COLOR -: Enable colored logging. - - - - - - - - - - - - - - - - - - - - - -### graph server - -Start integrated server - -Usage: `graph server [command options] [arguments...]` - - - - - - - --log-file | $GRAPH_LOG_FILE , $OCIS_LOG_FILE -: Enable log to file. - - --tracing-enabled | $GRAPH_TRACING_ENABLED , $OCIS_TRACING_ENABLED -: Enable sending traces. - - --tracing-type | $GRAPH_TRACING_TYPE , $OCIS_TRACING_TYPE -: Tracing backend type. Default: `"jaeger"`. - - --tracing-endpoint | $GRAPH_TRACING_ENDPOINT , $OCIS_TRACING_ENDPOINT -: Endpoint for the agent. Default: `""`. - - --tracing-collector | $GRAPH_TRACING_COLLECTOR , $OCIS_TRACING_COLLECTOR -: Endpoint for the collector. Default: `""`. - - --tracing-service | $GRAPH_TRACING_SERVICE -: Service name for tracing. Default: `"graph"`. - - --debug-addr | $GRAPH_DEBUG_ADDR -: Address to bind debug server. Default: `"127.0.0.1:9124"`. - - --debug-token | $GRAPH_DEBUG_TOKEN -: Token to grant metrics access. Default: `""`. - - --debug-pprof | $GRAPH_DEBUG_PPROF -: Enable pprof debugging. - - --debug-zpages | $GRAPH_DEBUG_ZPAGES -: Enable zpages debugging. - - --http-addr | $GRAPH_HTTP_ADDR -: Address to bind http server. Default: `"127.0.0.1:9120"`. - - --http-root | $GRAPH_HTTP_ROOT -: Root path of http server. Default: `"/graph"`. - - --http-namespace | $GRAPH_HTTP_NAMESPACE -: Set the base namespace for the http service for service discovery. Default: `"com.owncloud.web"`. - - --spaces-webdav-base | $GRAPH_SPACES_WEBDAV_BASE , $OCIS_URL -: spaces webdav base URL to use when rendering drive WabDAV URLs. Default: `"https://localhost:9200"`. - - --spaces-webdav-path | $GRAPH_SPACES_WEBDAV_PATH -: spaces webdav path to use when rendering drive WabDAV URLs. Default: `"/dav/spaces/"`. - - --default-space-quota | $GRAPH_SPACES_DEFAULT_QUOTA -: default quota used for all spaces if no custom quota was given. Default: `"1000000000"`. - - --jwt-secret | $GRAPH_JWT_SECRET , $OCIS_JWT_SECRET -: Used to validate the reva access JWT, should equal reva's jwt-secret. Default: `"Pive-Fumkiu4"`. - - --reva-gateway-addr | $REVA_GATEWAY -: Address of REVA gateway endpoint. Default: `"127.0.0.1:9142"`. - - --extensions | -: Run specific extensions during supervised mode. This flag is set by the runtime. - diff --git a/extensions/idp/configuration.md b/extensions/idp/configuration.md deleted file mode 100644 index 4ace38348f0..00000000000 --- a/extensions/idp/configuration.md +++ /dev/null @@ -1,488 +0,0 @@ ---- -title: "Configuration" -date: "2021-11-23T10:24:25+0000" -weight: 20 -geekdocRepo: https://github.com/owncloud/ocis -geekdocEditPath: edit/master/idp/templates -geekdocFilePath: CONFIGURATION.tmpl ---- - -{{< toc >}} - -## Configuration - -### Configuration using config files - -Out of the box extensions will attempt to read configuration details from: - -```console -/etc/ocis -$HOME/.ocis -./config -``` - -For this configuration to be picked up, have a look at your extension `root` command and look for which default config name it has assigned. *i.e: ocis-idp reads `idp.json | yaml | toml ...`*. - -So far we support the file formats `JSON` and `YAML`, if you want to get a full example configuration just take a look at [our repository](https://github.com/owncloud/ocis/tree/master/idp/config), there you can always see the latest configuration format. These example configurations include all available options and the default values. The configuration file will be automatically loaded if it's placed at `/etc/ocis/ocis.yml`, `${HOME}/.ocis/ocis.yml` or `$(pwd)/config/ocis.yml`. - -### Environment variables - -If you prefer to configure the service with environment variables you can see the available variables below. - -If multiple variables are listed for one option, they are in order of precedence. This means the leftmost variable will always win if given. - -### Command-line flags - -If you prefer to configure the service with command-line flags you can see the available variables below. Command line flags are only working when calling the subcommand directly. - -### idp health - -Check health status - -Usage: `idp health [command options] [arguments...]` - - - - - --debug-addr | $IDP_DEBUG_ADDR -: Address to debug endpoint. Default: `"127.0.0.1:9134"`. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -### idp ocis-idp - -Serve IDP API for oCIS - -Usage: `idp ocis-idp [command options] [arguments...]` - - --log-level | $IDP_LOG_LEVEL , $OCIS_LOG_LEVEL -: Set logging level. - - --log-pretty | $IDP_LOG_PRETTY , $OCIS_LOG_PRETTY -: Enable pretty logging. - - --log-color | $IDP_LOG_COLOR , $OCIS_LOG_COLOR -: Enable colored logging. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -### idp server - -Start integrated server - -Usage: `idp server [command options] [arguments...]` - - - - - - --log-file | $IDP_LOG_FILE , $OCIS_LOG_FILE -: Enable log to file. - - --config-file | $IDP_CONFIG_FILE -: Path to config file. Default: `""`. - - --tracing-enabled | $IDP_TRACING_ENABLED , $OCIS_TRACING_ENABLED -: Enable sending traces. - - --tracing-type | $IDP_TRACING_TYPE , $OCIS_TRACING_TYPE -: Tracing backend type. Default: `"jaeger"`. - - --tracing-endpoint | $IDP_TRACING_ENDPOINT , $OCIS_TRACING_ENDPOINT -: Endpoint for the agent. Default: `""`. - - --tracing-collector | $IDP_TRACING_COLLECTOR , $OCIS_TRACING_COLLECTOR -: Endpoint for the collector. Default: `""`. - - --tracing-service | $IDP_TRACING_SERVICE -: Service name for tracing. Default: `"idp"`. - - --debug-addr | $IDP_DEBUG_ADDR -: Address to bind debug server. Default: `"127.0.0.1:9134"`. - - --debug-token | $IDP_DEBUG_TOKEN -: Token to grant metrics access. Default: `""`. - - --debug-pprof | $IDP_DEBUG_PPROF -: Enable pprof debugging. - - --debug-zpages | $IDP_DEBUG_ZPAGES -: Enable zpages debugging. - - --http-addr | $IDP_HTTP_ADDR -: Address to bind http server. Default: `"127.0.0.1:9130"`. - - --http-root | $IDP_HTTP_ROOT -: Root path of http server. Default: `"/"`. - - --http-namespace | $IDP_HTTP_NAMESPACE -: Set the base namespace for service discovery. Default: `"com.owncloud.web"`. - - --name | $IDP_NAME -: Service name. Default: `"idp"`. - - --identity-manager | $IDP_IDENTITY_MANAGER -: Identity manager (one of ldap,kc,cookie,dummy). Default: `"ldap"`. - - --ldap-uri | $IDP_LDAP_URI -: URI of the LDAP server (glauth). Default: `"ldap://localhost:9125"`. - - --ldap-bind-dn | $IDP_LDAP_BIND_DN -: Bind DN for the LDAP server (glauth). Default: `"cn=idp,ou=sysusers,dc=ocis,dc=test"`. - - --ldap-bind-password | $IDP_LDAP_BIND_PASSWORD -: Password for the Bind DN of the LDAP server (glauth). Default: `"idp"`. - - --ldap-base-dn | $IDP_LDAP_BASE_DN -: LDAP base DN of the oCIS users. Default: `"ou=users,dc=ocis,dc=test"`. - - --ldap-scope | $IDP_LDAP_SCOPE -: LDAP scope of the oCIS users. Default: `"sub"`. - - --ldap-login-attribute | $IDP_LDAP_LOGIN_ATTRIBUTE -: LDAP login attribute of the oCIS users. Default: `"cn"`. - - --ldap-email-attribute | $IDP_LDAP_EMAIL_ATTRIBUTE -: LDAP email attribute of the oCIS users. Default: `"mail"`. - - --ldap-name-attribute | $IDP_LDAP_NAME_ATTRIBUTE -: LDAP name attribute of the oCIS users. Default: `"sn"`. - - --ldap-uuid-attribute | $IDP_LDAP_UUID_ATTRIBUTE -: LDAP UUID attribute of the oCIS users. Default: `"uid"`. - - --ldap-uuid-attribute-type | $IDP_LDAP_UUID_ATTRIBUTE_TYPE -: LDAP UUID attribute type of the oCIS users. Default: `"text"`. - - --ldap-filter | $IDP_LDAP_FILTER -: LDAP filter of the oCIS users. Default: `"(objectClass=posixaccount)"`. - - --transport-tls-cert | $IDP_TRANSPORT_TLS_CERT -: Certificate file for transport encryption. Default: `flags.OverrideDefaultString(cfg.HTTP.TLSCert, path.Join(defaults.BaseDataPath(), "idp", "server.crt"))`. - - --transport-tls-key | $IDP_TRANSPORT_TLS_KEY -: Secret file for transport encryption. Default: `flags.OverrideDefaultString(cfg.HTTP.TLSKey, path.Join(defaults.BaseDataPath(), "idp", "server.key"))`. - - --iss | $IDP_ISS , $OCIS_URL -: OIDC issuer URL. Default: `"https://localhost:9200"`. - - --signing-private-key | $IDP_SIGNING_PRIVATE_KEY -: Full path to PEM encoded private key file (must match the --signing-method algorithm). Default: `nil`. - - --signing-kid | $IDP_SIGNING_KID -: Value of kid field to use in created tokens (uniquely identifying the signing-private-key). Default: `""`. - - --validation-keys-path | $IDP_VALIDATION_KEYS_PATH -: Full path to a folder containing PEM encoded private or public key files used for token validation (file name without extension is used as kid). Default: `""`. - - --encryption-secret | $IDP_ENCRYPTION_SECRET -: Full path to a file containing a %d bytes secret key. Default: `""`. - - --signing-method | $IDP_SIGNING_METHOD -: JWT default signing method. Default: `"PS256"`. - - --uri-base-path | $IDP_URI_BASE_PATH -: Custom base path for URI endpoints. Default: `""`. - - --sign-in-uri | $IDP_SIGN_IN_URI -: Custom redirection URI to sign-in form. Default: `""`. - - --signed-out-uri | $IDP_SIGN_OUT_URI -: Custom redirection URI to signed-out goodbye page. Default: `""`. - - --authorization-endpoint-uri | $IDP_ENDPOINT_URI -: Custom authorization endpoint URI. Default: `""`. - - --endsession-endpoint-uri | $IDP_ENDSESSION_ENDPOINT_URI -: Custom endsession endpoint URI. Default: `""`. - - --asset-path | $IDP_ASSET_PATH -: Path to custom assets. Default: `""`. - - --identifier-client-path | $IDP_IDENTIFIER_CLIENT_PATH -: Path to the identifier web client base folder. Default: `flags.OverrideDefaultString(cfg.IDP.IdentifierClientPath, path.Join(defaults.BaseDataPath(), "idp"))`. - - --identifier-registration-conf | $IDP_IDENTIFIER_REGISTRATION_CONF -: Path to a identifier-registration.yaml configuration file. Default: `flags.OverrideDefaultString(cfg.IDP.IdentifierRegistrationConf, path.Join(defaults.BaseDataPath(), "idp", "identifier-registration.yaml"))`. - - --identifier-scopes-conf | $IDP_IDENTIFIER_SCOPES_CONF -: Path to a scopes.yaml configuration file. Default: `""`. - - --insecure | $IDP_INSECURE -: Disable TLS certificate and hostname validation. Default: `false`. - - --tls | $IDP_TLS -: Use TLS (disable only if idp is behind a TLS-terminating reverse-proxy).. Default: `false`. - - --trusted-proxy | $IDP_TRUSTED_PROXY -: Trusted proxy IP or IP network (can be used multiple times). Default: `nil`. - - --allow-scope | $IDP_ALLOW_SCOPE -: Allow OAuth 2 scope (can be used multiple times, if not set default scopes are allowed). Default: `nil`. - - --allow-client-guests | $IDP_ALLOW_CLIENT_GUESTS -: Allow sign in of client controlled guest users. - - --allow-dynamic-client-registration | $IDP_ALLOW_DYNAMIC_CLIENT_REGISTRATION -: Allow dynamic OAuth2 client registration. Default: `false`. - - --disable-identifier-webapp | $IDP_DISABLE_IDENTIFIER_WEBAPP -: Disable built-in identifier-webapp to use a frontend hosted elsewhere.. Default: `true`. - - --access-token-expiration | $IDP_ACCESS_TOKEN_EXPIRATION -: Expiration time of access tokens in seconds since generated. Default: `60 * 10`. - - --id-token-expiration | $IDP_ID_TOKEN_EXPIRATION -: Expiration time of id tokens in seconds since generated. Default: `60 * 60`. - - --refresh-token-expiration | $IDP_REFRESH_TOKEN_EXPIRATION -: Expiration time of refresh tokens in seconds since generated. Default: `60 * 60 * 24 * 365 * 3`. - - --extensions | -: Run specific extensions during supervised mode. This flag is set by the runtime. - - - -### idp version - -Print the versions of the running instances - -Usage: `idp version [command options] [arguments...]` - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --http-namespace | $IDP_HTTP_NAMESPACE -: Set the base namespace for service discovery. Default: `"com.owncloud.web"`. - - --name | $IDP_NAME -: Service name. Default: `"idp"`. - diff --git a/extensions/ocs/configuration.md b/extensions/ocs/configuration.md deleted file mode 100644 index ef05ffd4deb..00000000000 --- a/extensions/ocs/configuration.md +++ /dev/null @@ -1,285 +0,0 @@ ---- -title: "Configuration" -date: "2021-11-23T10:24:25+0000" -weight: 20 -geekdocRepo: https://github.com/owncloud/ocis -geekdocEditPath: edit/master/ocs/templates -geekdocFilePath: CONFIGURATION.tmpl ---- - -{{< toc >}} - -## Configuration - -### Configuration using config files - -Out of the box extensions will attempt to read configuration details from: - -```console -/etc/ocis -$HOME/.ocis -./config -``` - -For this configuration to be picked up, have a look at your extension `root` command and look for which default config name it has assigned. *i.e: ocis-ocs reads `ocs.json | yaml | toml ...`*. - -So far we support the file formats `JSON` and `YAML`, if you want to get a full example configuration just take a look at [our repository](https://github.com/owncloud/ocis/tree/master/ocs/config), there you can always see the latest configuration format. These example configurations include all available options and the default values. The configuration file will be automatically loaded if it's placed at `/etc/ocis/ocis.yml`, `${HOME}/.ocis/ocis.yml` or `$(pwd)/config/ocis.yml`. - -### Environment variables - -If you prefer to configure the service with environment variables you can see the available variables below. - -If multiple variables are listed for one option, they are in order of precedence. This means the leftmost variable will always win if given. - -### Command-line flags - -If you prefer to configure the service with command-line flags you can see the available variables below. Command line flags are only working when calling the subcommand directly. - -### ocs ocis-ocs - -Serve OCS API for oCIS - -Usage: `ocs ocis-ocs [command options] [arguments...]` - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -### ocs server - -Start integrated server - -Usage: `ocs server [command options] [arguments...]` - - - --log-file | $OCS_LOG_FILE , $OCIS_LOG_FILE -: Enable log to file. - - --log-level | $OCS_LOG_LEVEL , $OCIS_LOG_LEVEL -: Set logging level. - - --log-pretty | $OCS_LOG_PRETTY , $OCIS_LOG_PRETTY -: Enable pretty logging. - - --log-color | $OCS_LOG_COLOR , $OCIS_LOG_COLOR -: Enable colored logging. - - --config-file | $OCS_CONFIG_FILE -: Path to config file. - - --tracing-enabled | $OCS_TRACING_ENABLED , $OCIS_TRACING_ENABLED -: Enable sending traces. Default: `false`. - - --tracing-type | $OCS_TRACING_TYPE , $OCIS_TRACING_TYPE -: Tracing backend type. Default: `"jaeger"`. - - --tracing-endpoint | $OCS_TRACING_ENDPOINT , $OCIS_TRACING_ENDPOINT -: Endpoint for the agent. Default: `""`. - - --tracing-collector | $OCS_TRACING_COLLECTOR , $OCIS_TRACING_COLLECTOR -: Endpoint for the collector. Default: `""`. - - --tracing-service | $OCS_TRACING_SERVICE -: Service name for tracing. Default: `"ocs"`. - - --debug-addr | $OCS_DEBUG_ADDR -: Address to bind debug server. Default: `"127.0.0.1:9114"`. - - --debug-token | $OCS_DEBUG_TOKEN -: Token to grant metrics access. Default: `""`. - - --debug-pprof | $OCS_DEBUG_PPROF -: Enable pprof debugging. - - --debug-zpages | $OCS_DEBUG_ZPAGES -: Enable zpages debugging. - - --http-addr | $OCS_HTTP_ADDR -: Address to bind http server. Default: `"127.0.0.1:9110"`. - - --http-namespace | $OCS_NAMESPACE -: Set the base namespace for the http namespace. Default: `"com.owncloud.web"`. - - --cors-allowed-origins | $OCS_CORS_ALLOW_ORIGINS , $OCIS_CORS_ALLOW_ORIGINS -: Set the allowed CORS origins. Default: `cli.NewStringSlice("*")`. - - --cors-allowed-methods | $OCS_CORS_ALLOW_METHODS , $OCIS_CORS_ALLOW_METHODS -: Set the allowed CORS origins. Default: `cli.NewStringSlice("GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS")`. - - --cors-allowed-headers | $OCS_CORS_ALLOW_HEADERS , $OCIS_CORS_ALLOW_HEADERS -: Set the allowed CORS origins. Default: `cli.NewStringSlice("Authorization", "Origin", "Content-Type", "Accept", "X-Requested-With")`. - - --cors-allow-credentials | $OCS_CORS_ALLOW_CREDENTIALS , $OCIS_CORS_ALLOW_CREDENTIALS -: Allow credentials for CORS. Default: `true`. - - --name | $OCS_NAME -: Service name. Default: `"ocs"`. - - --http-root | $OCS_HTTP_ROOT -: Root path of http server. Default: `"/ocs"`. - - --jwt-secret | $OCS_JWT_SECRET , $OCIS_JWT_SECRET -: Used to dismantle the access token, should equal reva's jwt-secret. Default: `"Pive-Fumkiu4"`. - - --account-backend-type | $OCS_ACCOUNT_BACKEND_TYPE -: account-backend-type. Default: `"accounts"`. - - --reva-gateway-addr | $REVA_GATEWAY -: Address of REVA gateway endpoint. Default: `"127.0.0.1:9142"`. - - --machine-auth-api-key | $OCS_MACHINE_AUTH_API_KEY , $OCIS_MACHINE_AUTH_API_KEY -: the API key to be used for the machine auth driver in reva. Default: `"change-me-please"`. - - --idm-address | $OCS_IDM_ADDRESS , $OCIS_URL -: keeps track of the IDM Address. Needed because of Reva requisite of uniqueness for users. Default: `"https://localhost:9200"`. - - --users-driver | $OCS_STORAGE_USERS_DRIVER , $STORAGE_USERS_DRIVER -: storage driver for users mount: eg. local, eos, owncloud, ocis or s3. Default: `"ocis"`. - - --extensions | -: Run specific extensions during supervised mode. - - - -### ocs version - -Print the versions of the running instances - -Usage: `ocs version [command options] [arguments...]` - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --http-namespace | $OCS_NAMESPACE -: Set the base namespace for the http namespace. Default: `"com.owncloud.web"`. - - --name | $OCS_NAME -: Service name. Default: `"ocs"`. - -### ocs health - -Check health status - -Usage: `ocs health [command options] [arguments...]` - - --debug-addr | $OCS_DEBUG_ADDR -: Address to debug endpoint. Default: `"127.0.0.1:9114"`. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/extensions/proxy/configuration.md b/extensions/proxy/configuration.md deleted file mode 100644 index 20076aa45bf..00000000000 --- a/extensions/proxy/configuration.md +++ /dev/null @@ -1,360 +0,0 @@ ---- -title: "Configuration" -date: "2021-11-23T10:24:25+0000" -weight: 20 -geekdocRepo: https://github.com/owncloud/ocis -geekdocEditPath: edit/master/proxy/templates -geekdocFilePath: CONFIGURATION.tmpl ---- - -{{< toc >}} - -## Configuration - -### Configuration using config files - -Out of the box extensions will attempt to read configuration details from: - -```console -/etc/ocis -$HOME/.ocis -./config -``` - -For this configuration to be picked up, have a look at your extension `root` command and look for which default config name it has assigned. *i.e: ocis-proxy reads `proxy.json | yaml | toml ...`*. - -So far we support the file formats `JSON` and `YAML`, if you want to get a full example configuration just take a look at [our repository](https://github.com/owncloud/ocis/tree/master/proxy/config), there you can always see the latest configuration format. These example configurations include all available options and the default values. The configuration file will be automatically loaded if it's placed at `/etc/ocis/ocis.yml`, `${HOME}/.ocis/ocis.yml` or `$(pwd)/config/ocis.yml`. - -### Environment variables - -If you prefer to configure the service with environment variables you can see the available variables below. - -If multiple variables are listed for one option, they are in order of precedence. This means the leftmost variable will always win if given. - -### Command-line flags - -If you prefer to configure the service with command-line flags you can see the available variables below. Command line flags are only working when calling the subcommand directly. - -### proxy ocis-proxy - -proxy for oCIS - -Usage: `proxy ocis-proxy [command options] [arguments...]` - - --log-level | $PROXY_LOG_LEVEL , $OCIS_LOG_LEVEL -: Set logging level. - - --log-pretty | $PROXY_LOG_PRETTY , $OCIS_LOG_PRETTY -: Enable pretty logging. - - --log-color | $PROXY_LOG_COLOR , $OCIS_LOG_COLOR -: Enable colored logging. - - --extensions | -: Run specific extensions during supervised mode. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -### proxy server - -Start integrated server - -Usage: `proxy server [command options] [arguments...]` - - --log-level | $PROXY_LOG_LEVEL , $OCIS_LOG_LEVEL -: Set logging level. - - --log-pretty | $PROXY_LOG_PRETTY , $OCIS_LOG_PRETTY -: Enable pretty logging. - - --log-color | $PROXY_LOG_COLOR , $OCIS_LOG_COLOR -: Enable colored logging. - - --extensions | -: Run specific extensions during supervised mode. - - - --log-file | $PROXY_LOG_FILE , $OCIS_LOG_FILE -: Enable log to file. - - --config-file | $PROXY_CONFIG_FILE -: Path to config file. - - --tracing-enabled | $PROXY_TRACING_ENABLED , $OCIS_TRACING_ENABLED -: Enable sending traces. - - --tracing-type | $PROXY_TRACING_TYPE , $OCIS_TRACING_TYPE -: Tracing backend type. Default: `"jaeger"`. - - --tracing-endpoint | $PROXY_TRACING_ENDPOINT , $OCIS_TRACING_ENDPOINT -: Endpoint for the agent. - - --tracing-collector | $PROXY_TRACING_COLLECTOR , $OCIS_TRACING_COLLECTOR -: Endpoint for the collector. - - --tracing-service | $PROXY_TRACING_SERVICE -: Service name for tracing. Default: `"proxy"`. - - --debug-addr | $PROXY_DEBUG_ADDR -: Address to bind debug server. Default: `"127.0.0.1:9205"`. - - --debug-token | $PROXY_DEBUG_TOKEN -: Token to grant metrics access. - - --debug-pprof | $PROXY_DEBUG_PPROF -: Enable pprof debugging. - - --debug-zpages | $PROXY_DEBUG_ZPAGES -: Enable zpages debugging. - - --http-addr | $PROXY_HTTP_ADDR -: Address to bind http server. Default: `"0.0.0.0:9200"`. - - --http-root | $PROXY_HTTP_ROOT -: Root path of http server. Default: `"/"`. - - --service-namespace | $PROXY_SERVICE_NAMESPACE -: Set the base namespace for the service namespace. Default: `"com.owncloud.web"`. - - --service-name | $PROXY_SERVICE_NAME -: Service name. Default: `"proxy"`. - - --transport-tls-cert | $PROXY_TRANSPORT_TLS_CERT -: Certificate file for transport encryption. Default: `flags.OverrideDefaultString(cfg.HTTP.TLSCert, path.Join(defaults.BaseDataPath(), "proxy", "server.crt"))`. - - --transport-tls-key | $PROXY_TRANSPORT_TLS_KEY -: Secret file for transport encryption. Default: `flags.OverrideDefaultString(cfg.HTTP.TLSKey, path.Join(defaults.BaseDataPath(), "proxy", "server.key"))`. - - --tls | $PROXY_TLS -: Use TLS (disable only if proxy is behind a TLS-terminating reverse-proxy).. Default: `true`. - - --jwt-secret | $PROXY_JWT_SECRET , $OCIS_JWT_SECRET -: Used to create JWT to talk to reva, should equal reva's jwt-secret. Default: `"Pive-Fumkiu4"`. - - --reva-gateway-addr | $REVA_GATEWAY -: Address of REVA gateway endpoint. Default: `"127.0.0.1:9142"`. - - --insecure | $PROXY_INSECURE_BACKENDS -: allow insecure communication to upstream servers. Default: `false`. - - --oidc-issuer | $PROXY_OIDC_ISSUER , $OCIS_URL -: OIDC issuer. Default: `"https://localhost:9200"`. - - --oidc-insecure | $PROXY_OIDC_INSECURE , $OCIS_INSECURE -: OIDC allow insecure communication. Default: `false`. - - --oidc-userinfo-cache-tll | $PROXY_OIDC_USERINFO_CACHE_TTL -: Fallback TTL in seconds for caching userinfo, when no token lifetime can be identified. Default: `10`. - - --oidc-userinfo-cache-size | $PROXY_OIDC_USERINFO_CACHE_SIZE -: Max entries for caching userinfo. Default: `1024`. - - --autoprovision-accounts | $PROXY_AUTOPROVISION_ACCOUNTS -: create accounts from OIDC access tokens to learn new users. Default: `false`. - - --user-oidc-claim | $PROXY_USER_OIDC_CLAIM -: The OIDC claim that is used to identify users, eg. 'ownclouduuid', 'uid', 'cn' or 'email'. Default: `"email"`. - - --user-cs3-claim | $PROXY_USER_CS3_CLAIM -: The CS3 claim to use when looking up a user in the CS3 users API, eg. 'userid', 'username' or 'mail'. Default: `"mail"`. - - --presignedurl-allow-method | $PRESIGNEDURL_ALLOWED_METHODS -: --presignedurl-allow-method GET [--presignedurl-allow-method POST]. Default: `cli.NewStringSlice("GET")`. - - --enable-presignedurls | $PROXY_ENABLE_PRESIGNEDURLS -: Enable or disable handling the presigned urls in the proxy. Default: `true`. - - --enable-basic-auth | $PROXY_ENABLE_BASIC_AUTH -: enable basic authentication. Default: `false`. - - --account-backend-type | $PROXY_ACCOUNT_BACKEND_TYPE -: account-backend-type. Default: `"accounts"`. - - --machine-auth-api-key | $PROXY_MACHINE_AUTH_API_KEY , $OCIS_MACHINE_AUTH_API_KEY -: the API key to be used for the machine auth driver in reva. Default: `"change-me-please"`. - - --proxy-user-agent-lock-in | $PROXY_MIDDLEWARE_AUTH_CREDENTIALS_BY_USER_AGENT -: --user-agent-whitelist-lock-in=mirall:basic,foo:bearer Given a tuple of [UserAgent:challenge] it locks a given user agent to the authentication challenge. Particularly useful for old clients whose USer-Agent is known and only support one authentication challenge. When this flag is set in the proxy it configures the authentication middlewares.. - - - -### proxy version - -Print the versions of the running instances - -Usage: `proxy version [command options] [arguments...]` - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --service-namespace | $PROXY_SERVICE_NAMESPACE -: Set the base namespace for the service namespace. Default: `"com.owncloud.web"`. - - --service-name | $PROXY_SERVICE_NAME -: Service name. Default: `"proxy"`. - -### proxy health - -Check health status - -Usage: `proxy health [command options] [arguments...]` - - - - - - --debug-addr | $PROXY_DEBUG_ADDR -: Address to debug endpoint. Default: `"127.0.0.1:9109"`. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/extensions/settings/configuration.md b/extensions/settings/configuration.md deleted file mode 100644 index bd728f42b83..00000000000 --- a/extensions/settings/configuration.md +++ /dev/null @@ -1,278 +0,0 @@ ---- -title: "Configuration" -date: "2021-11-23T10:24:25+0000" -weight: 20 -geekdocRepo: https://github.com/owncloud/ocis -geekdocEditPath: edit/master/settings/templates -geekdocFilePath: CONFIGURATION.tmpl ---- - -{{< toc >}} - -## Configuration - -### Configuration using config files - -Out of the box extensions will attempt to read configuration details from: - -```console -/etc/ocis -$HOME/.ocis -./config -``` - -For this configuration to be picked up, have a look at your extension `root` command and look for which default config name it has assigned. *i.e: ocis-proxy reads `proxy.json | yaml | toml ...`*. - -So far we support the file formats `JSON` and `YAML`, if you want to get a full example configuration just take a look at [our repository](https://github.com/owncloud/ocis/tree/master/settings/config), there you can always see the latest configuration format. These example configurations include all available options and the default values. The configuration file will be automatically loaded if it's placed at `/etc/ocis/ocis.yml`, `${HOME}/.ocis/ocis.yml` or `$(pwd)/config/ocis.yml`. - -### Environment variables - -If you prefer to configure the service with environment variables you can see the available variables below. - -If multiple variables are listed for one option, they are in order of precedence. This means the leftmost variable will always win if given. - -### Command-line flags - -If you prefer to configure the service with command-line flags you can see the available variables below. Command line flags are only working when calling the subcommand directly. - -### settings health - -Check health status - -Usage: `settings health [command options] [arguments...]` - - - - - --debug-addr | $SETTINGS_DEBUG_ADDR -: Address to debug endpoint. Default: `"127.0.0.1:9194"`. - - - - - - - - - - - - - - - - - - - - - - - - - - - - -### settings ocis-settings - -Provide settings and permissions for oCIS - -Usage: `settings ocis-settings [command options] [arguments...]` - - --log-level | $SETTINGS_LOG_LEVEL , $OCIS_LOG_LEVEL -: Set logging level. - - --log-pretty | $SETTINGS_LOG_PRETTY , $OCIS_LOG_PRETTY -: Enable pretty logging. - - --log-color | $SETTINGS_LOG_COLOR , $OCIS_LOG_COLOR -: Enable colored logging. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -### settings server - -Start integrated server - -Usage: `settings server [command options] [arguments...]` - - - - - - --config-file | $SETTINGS_CONFIG_FILE -: Path to config file. - - --tracing-enabled | $SETTINGS_TRACING_ENABLED , $OCIS_TRACING_ENABLED -: Enable sending traces. - - --tracing-type | $SETTINGS_TRACING_TYPE , $OCIS_TRACING_TYPE -: Tracing backend type. Default: `"jaeger"`. - - --tracing-endpoint | $SETTINGS_TRACING_ENDPOINT , $OCIS_TRACING_ENDPOINT -: Endpoint for the agent. Default: `""`. - - --tracing-collector | $SETTINGS_TRACING_COLLECTOR , $OCIS_TRACING_COLLECTOR -: Endpoint for the collector. Default: `""`. - - --tracing-service | $SETTINGS_TRACING_SERVICE -: Service name for tracing. Default: `"settings"`. - - --debug-addr | $SETTINGS_DEBUG_ADDR -: Address to bind debug server. Default: `"127.0.0.1:9194"`. - - --debug-token | $SETTINGS_DEBUG_TOKEN -: Token to grant metrics access. Default: `""`. - - --debug-pprof | $SETTINGS_DEBUG_PPROF -: Enable pprof debugging. - - --debug-zpages | $SETTINGS_DEBUG_ZPAGES -: Enable zpages debugging. - - --http-addr | $SETTINGS_HTTP_ADDR -: Address to bind http server. Default: `"127.0.0.1:9190"`. - - --http-namespace | $SETTINGS_HTTP_NAMESPACE -: Set the base namespace for the http namespace. Default: `"com.owncloud.web"`. - - --http-root | $SETTINGS_HTTP_ROOT -: Root path of http server. Default: `"/"`. - - --http-cache-ttl | $SETTINGS_CACHE_TTL -: Set the static assets caching duration in seconds. Default: `604800`. - - --cors-allowed-origins | $SETTINGS_CORS_ALLOW_ORIGINS , $OCIS_CORS_ALLOW_ORIGINS -: Set the allowed CORS origins. Default: `cli.NewStringSlice("*")`. - - --cors-allowed-methods | $SETTINGS_CORS_ALLOW_METHODS , $OCIS_CORS_ALLOW_METHODS -: Set the allowed CORS origins. Default: `cli.NewStringSlice("GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS")`. - - --cors-allowed-headers | $SETTINGS_CORS_ALLOW_HEADERS , $OCIS_CORS_ALLOW_HEADERS -: Set the allowed CORS origins. Default: `cli.NewStringSlice("Authorization", "Origin", "Content-Type", "Accept", "X-Requested-With")`. - - --cors-allow-credentials | $SETTINGS_CORS_ALLOW_CREDENTIALS , $OCIS_CORS_ALLOW_CREDENTIALS -: Allow credentials for CORS. Default: `true`. - - --grpc-addr | $SETTINGS_GRPC_ADDR -: Address to bind grpc server. Default: `"127.0.0.1:9191"`. - - --asset-path | $SETTINGS_ASSET_PATH -: Path to custom assets. Default: `""`. - - --grpc-namespace | $SETTINGS_GRPC_NAMESPACE -: Set the base namespace for the grpc namespace. Default: `"com.owncloud.api"`. - - --name | $SETTINGS_NAME -: service name. Default: `"settings"`. - - --data-path | $SETTINGS_DATA_PATH -: Mount path for the storage. Default: `flags.OverrideDefaultString(cfg.Service.DataPath, path.Join(defaults.BaseDataPath(), "settings"))`. - - --jwt-secret | $SETTINGS_JWT_SECRET , $OCIS_JWT_SECRET -: Used to create JWT to talk to reva, should equal reva's jwt-secret. Default: `"Pive-Fumkiu4"`. - - --extensions | -: Run specific extensions during supervised mode. This flag is set by the runtime. - - - -### settings version - -Print the versions of the running instances - -Usage: `settings version [command options] [arguments...]` - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --grpc-namespace | $SETTINGS_GRPC_NAMESPACE -: Set the base namespace for the grpc namespace. Default: `"com.owncloud.api"`. - - --name | $SETTINGS_NAME -: service name. Default: `"settings"`. - diff --git a/extensions/storage/configuration.md b/extensions/storage/configuration.md deleted file mode 100644 index da56dd61b17..00000000000 --- a/extensions/storage/configuration.md +++ /dev/null @@ -1,4907 +0,0 @@ ---- -title: "Configuration" -date: "2021-11-23T10:24:29+0000" -weight: 20 -geekdocRepo: https://github.com/owncloud/ocis -geekdocEditPath: edit/master/storage/templates -geekdocFilePath: CONFIGURATION.tmpl ---- - -{{< toc >}} - -## Configuration - -### Configuration using config files - -Out of the box extensions will attempt to read configuration details from: - -```console -/etc/ocis -$HOME/.ocis -./config -``` - -For this configuration to be picked up, have a look at your extension `root` command and look for which default config name it has assigned. *i.e: ocis-proxy reads `proxy.json | yaml | toml ...`*. - -So far we support the file formats `JSON` and `YAML`, if you want to get a full example configuration just take a look at [our repository](https://github.com/owncloud/ocis/tree/master/storage/config), there you can always see the latest configuration format. These example configurations include all available options and the default values. The configuration file will be automatically loaded if it's placed at `/etc/ocis/ocis.yml`, `${HOME}/.ocis/ocis.yml` or `$(pwd)/config/ocis.yml`. - -### Environment variables - -If you prefer to configure the service with environment variables you can see the available variables below. - -If multiple variables are listed for one option, they are in order of precedence. This means the leftmost variable will always win if given. - -### Command-line flags - -If you prefer to configure the service with command-line flags you can see the available variables below. Command line flags are only working when calling the subcommand directly. - -## Root Command - -Storage service for oCIS - -Usage: `storage [global options] command [command options] [arguments...]` - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --config-file | $STORAGE_CONFIG_FILE -: Path to config file. - - --log-level | $STORAGE_LOG_LEVEL , $OCIS_LOG_LEVEL -: Set logging level. - - --log-pretty | $STORAGE_LOG_PRETTY , $OCIS_LOG_PRETTY -: Enable pretty logging. - - --log-color | $STORAGE_LOG_COLOR , $OCIS_LOG_COLOR -: Enable colored logging. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -## Sub Commands - -### storage auth-machine - -Start authprovider for machine auth - -Usage: `storage auth-machine [command options] [arguments...]` - - - - - - - - - - - - - - - - - - - - - --debug-addr | $STORAGE_AUTH_MACHINE_DEBUG_ADDR -: Address to bind debug server. Default: `"127.0.0.1:9167"`. - - --machine-auth-api-key | $STORAGE_AUTH_MACHINE_AUTH_API_KEY , $OCIS_MACHINE_AUTH_API_KEY -: the API key to be used for the machine auth driver in reva. Default: `"change-me-please"`. - - --network | $STORAGE_AUTH_MACHINE_GRPC_NETWORK -: Network to use for the storage service, can be 'tcp', 'udp' or 'unix'. Default: `"tcp"`. - - --addr | $STORAGE_AUTH_MACHINE_GRPC_ADDR -: Address to bind storage service. Default: `"127.0.0.1:9166"`. - - --service | $STORAGE_AUTH_MACHINE_SERVICES -: --service authprovider [--service otherservice]. Default: `cli.NewStringSlice("authprovider")`. - - --reva-gateway-addr | $REVA_GATEWAY -: Address of REVA gateway endpoint. Default: `"127.0.0.1:9142"`. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -### storage health - -Check health status - -Usage: `storage health [command options] [arguments...]` - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --debug-addr | $STORAGE_DEBUG_ADDR -: Address to debug endpoint. Default: `"127.0.0.1:9109"`. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -### storage storage-home - -Start storage-home service - -Usage: `storage storage-home [command options] [arguments...]` - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --debug-addr | $STORAGE_HOME_DEBUG_ADDR -: Address to bind debug server. Default: `"127.0.0.1:9156"`. - - --grpc-network | $STORAGE_HOME_GRPC_NETWORK -: Network to use for the storage service, can be 'tcp', 'udp' or 'unix'. Default: `"tcp"`. - - --grpc-addr | $STORAGE_HOME_GRPC_ADDR -: Address to bind storage service. Default: `"127.0.0.1:9154"`. - - --http-network | $STORAGE_HOME_HTTP_NETWORK -: Network to use for the storage service, can be 'tcp', 'udp' or 'unix'. Default: `"tcp"`. - - --http-addr | $STORAGE_HOME_HTTP_ADDR -: Address to bind storage service. Default: `"127.0.0.1:9155"`. - - --driver | $STORAGE_HOME_DRIVER -: storage driver for home mount: eg. local, eos, owncloud, ocis or s3. Default: `"ocis"`. - - --read-only | $STORAGE_HOME_READ_ONLY , $OCIS_STORAGE_READ_ONLY -: use storage driver in read-only mode. Default: `false`. - - --mount-path | $STORAGE_HOME_MOUNT_PATH -: mount path. Default: `"/home"`. - - --mount-id | $STORAGE_HOME_MOUNT_ID -: mount id. Default: `"1284d238-aa92-42ce-bdc4-0b0000009157"`. - - --expose-data-server | $STORAGE_HOME_EXPOSE_DATA_SERVER -: exposes a dedicated data server. Default: `false`. - - --data-server-url | $STORAGE_HOME_DATA_SERVER_URL -: data server url. Default: `"http://localhost:9155/data"`. - - --http-prefix | $STORAGE_HOME_HTTP_PREFIX -: prefix for the http endpoint, without leading slash. Default: `"data"`. - - --tmp-folder | $STORAGE_HOME_TMP_FOLDER -: path to tmp folder. Default: `flags.OverrideDefaultString(cfg.Reva.StorageHome.TempFolder, path.Join(defaults.BaseDataPath(), "tmp", "home"))`. - - --dataprovider-insecure | $STORAGE_HOME_DATAPROVIDER_INSECURE , $OCIS_INSECURE -: dataprovider insecure. Default: `false`. - - --reva-gateway-addr | $REVA_GATEWAY -: Address of REVA gateway endpoint. Default: `"127.0.0.1:9142"`. - - --users-endpoint | $STORAGE_USERPROVIDER_ENDPOINT -: endpoint to use for the storage service. Default: `"localhost:9144"`. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -### 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: `"127.0.0.1:9147"`. - - --auth-driver | $STORAGE_AUTH_DRIVER -: auth driver: 'demo', 'json' or 'ldap'. Default: `"ldap"`. - - --auth-json | $STORAGE_AUTH_JSON -: Path to users.json file. Default: `""`. - - --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: `"127.0.0.1:9146"`. - - --service | $STORAGE_AUTH_BASIC_SERVICES -: --service authprovider [--service otherservice]. Default: `cli.NewStringSlice("authprovider")`. - - --reva-gateway-addr | $REVA_GATEWAY -: Address of REVA gateway endpoint. Default: `"127.0.0.1:9142"`. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -### storage auth-bearer - -Start authprovider for bearer auth - -Usage: `storage auth-bearer [command options] [arguments...]` - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --debug-addr | $STORAGE_AUTH_BEARER_DEBUG_ADDR -: Address to bind debug server. Default: `"127.0.0.1:9149"`. - - --oidc-issuer | $STORAGE_OIDC_ISSUER , $OCIS_URL -: OIDC issuer. Default: `"https://localhost:9200"`. - - --oidc-insecure | $STORAGE_OIDC_INSECURE , $OCIS_INSECURE -: OIDC allow insecure communication. Default: `false`. - - --oidc-id-claim | $STORAGE_OIDC_ID_CLAIM -: OIDC id claim. Default: `"preferred_username"`. - - --oidc-uid-claim | $STORAGE_OIDC_UID_CLAIM -: OIDC uid claim. Default: `""`. - - --oidc-gid-claim | $STORAGE_OIDC_GID_CLAIM -: OIDC gid claim. Default: `""`. - - --network | $STORAGE_AUTH_BEARER_GRPC_NETWORK -: Network to use for the storage service, can be 'tcp', 'udp' or 'unix'. Default: `"tcp"`. - - --addr | $STORAGE_AUTH_BEARER_GRPC_ADDR -: Address to bind storage service. Default: `"127.0.0.1:9148"`. - - --service | $STORAGE_AUTH_BEARER_SERVICES -: --service authprovider [--service otherservice]. Default: `cli.NewStringSlice("authprovider")`. - - --reva-gateway-addr | $REVA_GATEWAY -: Address of REVA gateway endpoint. Default: `"127.0.0.1:9142"`. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -### storage storage-metadata - -Start storage-metadata service - -Usage: `storage storage-metadata [command options] [arguments...]` - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --config-file | $STORAGE_CONFIG_FILE -: Path to config file. - - --log-level | $STORAGE_LOG_LEVEL , $OCIS_LOG_LEVEL -: Set logging level. - - --log-pretty | $STORAGE_LOG_PRETTY , $OCIS_LOG_PRETTY -: Enable pretty logging. - - --log-color | $STORAGE_LOG_COLOR , $OCIS_LOG_COLOR -: Enable colored logging. - - - - - - - - - - - - - - - - - - --debug-addr | $STORAGE_METADATA_DEBUG_ADDR -: Address to bind debug server. Default: `"127.0.0.1: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: `"127.0.0.1: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: `"127.0.0.1:9216"`. - - --tmp-folder | $STORAGE_METADATA_TMP_FOLDER -: path to tmp folder. Default: `flags.OverrideDefaultString(cfg.Reva.StorageMetadata.TempFolder, path.Join(defaults.BaseDataPath(), "tmp", "metadata"))`. - - --driver | $STORAGE_METADATA_DRIVER -: storage driver for metadata mount: eg. local, eos, owncloud, ocis or s3. Default: `"ocis"`. - - --dataprovider-insecure | $STORAGE_METADATA_DATAPROVIDER_INSECURE , $OCIS_INSECURE -: dataprovider insecure. Default: `false`. - - --reva-gateway-addr | $REVA_GATEWAY -: Address of REVA gateway endpoint. Default: `"127.0.0.1:9142"`. - - --userprovider-endpoint | $STORAGE_USERPROVIDER_ENDPOINT -: endpoint to use for the userprovider service. Default: `"localhost:9144"`. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -### storage storage-users - -Start storage-users service - -Usage: `storage storage-users [command options] [arguments...]` - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --debug-addr | $STORAGE_USERS_DEBUG_ADDR -: Address to bind debug server. Default: `"127.0.0.1:9159"`. - - --grpc-network | $STORAGE_USERS_GRPC_NETWORK -: Network to use for the users storage, can be 'tcp', 'udp' or 'unix'. Default: `"tcp"`. - - --grpc-addr | $STORAGE_USERS_GRPC_ADDR -: GRPC Address to bind users storage. Default: `"127.0.0.1:9157"`. - - --http-network | $STORAGE_USERS_HTTP_NETWORK -: Network to use for the storage service, can be 'tcp', 'udp' or 'unix'. Default: `"tcp"`. - - --http-addr | $STORAGE_USERS_HTTP_ADDR -: HTTP Address to bind users storage. Default: `"127.0.0.1:9158"`. - - --driver | $STORAGE_USERS_DRIVER -: storage driver for users mount: eg. local, eos, owncloud, ocis or s3. Default: `"ocis"`. - - --dataprovider-insecure | $STORAGE_USERS_DATAPROVIDER_INSECURE , $OCIS_INSECURE -: dataprovider insecure. Default: `false`. - - --read-only | $STORAGE_USERS_READ_ONLY , $OCIS_STORAGE_READ_ONLY -: use storage driver in read-only mode. Default: `false`. - - --mount-path | $STORAGE_USERS_MOUNT_PATH -: mount path. Default: `"/users"`. - - --mount-id | $STORAGE_USERS_MOUNT_ID -: mount id. Default: `"1284d238-aa92-42ce-bdc4-0b0000009157"`. - - --expose-data-server | $STORAGE_USERS_EXPOSE_DATA_SERVER -: exposes a dedicated data server. Default: `false`. - - --data-server-url | $STORAGE_USERS_DATA_SERVER_URL -: data server url. Default: `"http://localhost:9158/data"`. - - --http-prefix | $STORAGE_USERS_HTTP_PREFIX -: prefix for the http endpoint, without leading slash. Default: `"data"`. - - --tmp-folder | $STORAGE_USERS_TMP_FOLDER -: path to tmp folder. Default: `flags.OverrideDefaultString(cfg.Reva.StorageUsers.TempFolder, path.Join(defaults.BaseDataPath(), "tmp", "users"))`. - - --reva-gateway-addr | $REVA_GATEWAY -: Address of REVA gateway endpoint. Default: `"127.0.0.1:9142"`. - - --users-endpoint | $STORAGE_USERPROVIDER_ENDPOINT -: endpoint to use for the storage service. Default: `"localhost:9144"`. - - - - - - - - - - - - - - - - - - - - - -### storage app-provider - -Start appprovider for providing apps - -Usage: `storage app-provider [command options] [arguments...]` - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --debug-addr | $APP_PROVIDER_BASIC_DEBUG_ADDR -: Address to bind debug server. Default: `"127.0.0.1:9165"`. - - --network | $APP_PROVIDER_BASIC_GRPC_NETWORK -: Network to use for the storage auth-basic service, can be 'tcp', 'udp' or 'unix'. Default: `"tcp"`. - - --addr | $APP_PROVIDER_BASIC_GRPC_ADDR -: Address to bind storage service. Default: `"127.0.0.1:9164"`. - - --external-addr | $APP_PROVIDER_BASIC_EXTERNAL_ADDR -: Address to connect to the storage service for other services. Default: `"127.0.0.1:9164"`. - - --service | $APP_PROVIDER_BASIC_SERVICES -: --service appprovider [--service otherservice]. Default: `cli.NewStringSlice("appprovider")`. - - --driver | $APP_PROVIDER_DRIVER -: Driver to use for app provider. Default: `""`. - - --wopi-driver-app-apikey | $APP_PROVIDER_WOPI_DRIVER_APP_API_KEY -: The API key used by the app, if applicable.. Default: `""`. - - --wopi-driver-app-desktop-only | $APP_PROVIDER_WOPI_DRIVER_APP_DESKTOP_ONLY -: Whether the app can be opened only on desktop. Default: `false`. - - --wopi-driver-app-icon-uri | $APP_PROVIDER_WOPI_DRIVER_APP_ICON_URI -: IOP Secret (Shared with WOPI server). Default: `""`. - - --wopi-driver-app-internal-url | $APP_PROVIDER_WOPI_DRIVER_APP_INTERNAL_URL -: The internal app URL in case of dockerized deployments. Defaults to AppURL. Default: `""`. - - --wopi-driver-app-name | $APP_PROVIDER_WOPI_DRIVER_APP_NAME -: The App user-friendly name.. Default: `""`. - - --wopi-driver-app-url | $APP_PROVIDER_WOPI_DRIVER_APP_URL -: App server URL. Default: `""`. - - --wopi-driver-insecure | $APP_PROVIDER_WOPI_DRIVER_INSECURE -: Disable SSL certificate verification of WOPI server and WOPI bridge. Default: `false`. - - --wopi-driver-iopsecret | $APP_PROVIDER_WOPI_DRIVER_IOP_SECRET -: IOP Secret (Shared with WOPI server). Default: `""`. - - --wopi-driver-wopiurl | $APP_PROVIDER_WOPI_DRIVER_WOPI_URL -: WOPI server URL. Default: `""`. - - --reva-gateway-addr | $REVA_GATEWAY -: Address of REVA gateway endpoint. Default: `"127.0.0.1:9142"`. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -### storage storage-public-link - -Start storage-public-link service - -Usage: `storage storage-public-link [command options] [arguments...]` - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --debug-addr | $STORAGE_PUBLIC_LINK_DEBUG_ADDR -: Address to bind debug server. Default: `"127.0.0.1:9179"`. - - --network | $STORAGE_PUBLIC_LINK_GRPC_NETWORK -: Network to use for the storage service, can be 'tcp', 'udp' or 'unix'. Default: `"tcp"`. - - --addr | $STORAGE_PUBLIC_LINK_GRPC_ADDR -: Address to bind storage service. Default: `"127.0.0.1:9178"`. - - --mount-path | $STORAGE_PUBLIC_LINK_MOUNT_PATH -: mount path. Default: `"/public"`. - - --mount-id | $STORAGE_PUBLIC_LINK_MOUNT_ID -: mount id. Default: `"e1a73ede-549b-4226-abdf-40e69ca8230d"`. - - --reva-gateway-addr | $REVA_GATEWAY -: Address of REVA gateway endpoint. Default: `"127.0.0.1:9142"`. - -### storage users - -Start users service - -Usage: `storage users [command options] [arguments...]` - - --debug-addr | $STORAGE_USERPROVIDER_DEBUG_ADDR -: Address to bind debug server. Default: `"127.0.0.1:9145"`. - - --reva-gateway-addr | $REVA_GATEWAY -: Address of REVA gateway endpoint. Default: `"127.0.0.1:9142"`. - - --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: `"127.0.0.1:9144"`. - - --endpoint | $STORAGE_USERPROVIDER_ENDPOINT -: URL to use for the storage service. Default: `"localhost:9144"`. - - --service | $STORAGE_USERPROVIDER_SERVICES -: --service userprovider [--service otherservice]. Default: `cli.NewStringSlice("userprovider")`. - - --driver | $STORAGE_USERPROVIDER_DRIVER -: user driver: 'demo', 'json', 'ldap', 'owncloudsql' or 'rest'. Default: `"ldap"`. - - --json-config | $STORAGE_USERPROVIDER_JSON -: Path to users.json file. Default: `""`. - - --user-groups-cache-expiration | $STORAGE_USER_CACHE_EXPIRATION -: Time in minutes for redis cache expiration.. Default: `5`. - - --owncloudsql-dbhost | $STORAGE_USERPROVIDER_OWNCLOUDSQL_DBHOST -: hostname of the mysql db. Default: `"mysql"`. - - --owncloudsql-dbport | $STORAGE_USERPROVIDER_OWNCLOUDSQL_DBPORT -: port of the mysql db. Default: `3306`. - - --owncloudsql-dbname | $STORAGE_USERPROVIDER_OWNCLOUDSQL_DBNAME -: database name of the owncloud db. Default: `"owncloud"`. - - --owncloudsql-dbuser | $STORAGE_USERPROVIDER_OWNCLOUDSQL_DBUSER -: user name to use when connecting to the mysql owncloud db. Default: `"owncloud"`. - - --owncloudsql-dbpass | $STORAGE_USERPROVIDER_OWNCLOUDSQL_DBPASS -: password to use when connecting to the mysql owncloud db. Default: `"secret"`. - - --owncloudsql-idp | $STORAGE_USERPROVIDER_OWNCLOUDSQL_IDP , $OCIS_URL -: Identity provider to use for users. Default: `"https://localhost:9200"`. - - --owncloudsql-nobody | $STORAGE_USERPROVIDER_OWNCLOUDSQL_NOBODY -: fallback user id to use when user has no id. Default: `99`. - - --owncloudsql-join-username | $STORAGE_USERPROVIDER_OWNCLOUDSQL_JOIN_USERNAME -: join the username from the oc_preferences table. Default: `false`. - - --owncloudsql-join-ownclouduuid | $STORAGE_USERPROVIDER_OWNCLOUDSQL_JOIN_OWNCLOUDUUID -: join the ownclouduuid from the oc_preferences table. Default: `false`. - - --owncloudsql-enable-medial-search | $STORAGE_USERPROVIDER_OWNCLOUDSQL_ENABLE_MEDIAL_SEARCH -: enable medial search when finding users. Default: `false`. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -### storage groups - -Start groups service - -Usage: `storage groups [command options] [arguments...]` - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --debug-addr | $STORAGE_GROUPPROVIDER_DEBUG_ADDR -: Address to bind debug server. Default: `"127.0.0.1:9161"`. - - --reva-gateway-addr | $REVA_GATEWAY -: Address of REVA gateway endpoint. Default: `"127.0.0.1:9142"`. - - --network | $STORAGE_GROUPPROVIDER_NETWORK -: Network to use for the storage service, can be 'tcp', 'udp' or 'unix'. Default: `"tcp"`. - - --addr | $STORAGE_GROUPPROVIDER_ADDR -: Address to bind storage service. Default: `"127.0.0.1:9160"`. - - --endpoint | $STORAGE_GROUPPROVIDER_ENDPOINT -: URL to use for the storage service. Default: `"localhost:9160"`. - - --service | $STORAGE_GROUPPROVIDER_SERVICES -: --service groupprovider [--service otherservice]. Default: `cli.NewStringSlice("groupprovider")`. - - --driver | $STORAGE_GROUPPROVIDER_DRIVER -: group driver: 'json', 'ldap', or 'rest'. Default: `"ldap"`. - - --json-config | $STORAGE_GROUPPROVIDER_JSON -: Path to groups.json file. Default: `""`. - - --group-members-cache-expiration | $STORAGE_GROUP_CACHE_EXPIRATION -: Time in minutes for redis cache expiration.. Default: `5`. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -### storage gateway - -Start gateway - -Usage: `storage gateway [command options] [arguments...]` - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --debug-addr | $STORAGE_GATEWAY_DEBUG_ADDR -: Address to bind debug server. Default: `"127.0.0.1:9143"`. - - --transfer-secret | $STORAGE_TRANSFER_SECRET -: Transfer secret for datagateway. Default: `"replace-me-with-a-transfer-secret"`. - - --transfer-expires | $STORAGE_TRANSFER_EXPIRES -: Transfer token ttl in seconds. Default: `24 * 60 * 60`. - - --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 REVA service. Default: `"127.0.0.1:9142"`. - - --reva-gateway-addr | $REVA_GATEWAY -: Address of REVA gateway endpoint. Default: `"127.0.0.1:9142"`. - - --service | $STORAGE_GATEWAY_SERVICES -: --service gateway [--service authregistry]. Default: `cli.NewStringSlice("gateway", "authregistry", "storageregistry", "appregistry")`. - - --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. - - --storage-home-mapping | $STORAGE_GATEWAY_HOME_MAPPING -: mapping template for user home paths to user-specific mount points, e.g. /home/{{substr 0 1 .Username}}. Default: `""`. - - --etag-cache-ttl | $STORAGE_GATEWAY_ETAG_CACHE_TTL -: TTL for the home and shares directory etags cache. Default: `0`. - - --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"`. - - --auth-machine-endpoint | $STORAGE_AUTH_MACHINE_ENDPOINT -: endpoint to use for the machine auth provider. Default: `"localhost:9166"`. - - --storage-registry-driver | $STORAGE_STORAGE_REGISTRY_DRIVER -: driver of the storage registry. Default: `"static"`. - - --storage-registry-rule | $STORAGE_STORAGE_REGISTRY_RULES -: `Replaces the generated storage registry rules with this set: --storage-registry-rule "/eos=localhost:9158" [--storage-registry-rule "1284d238-aa92-42ce-bdc4-0b0000009162=localhost:9162"]`. Default: `cli.NewStringSlice()`. - - --storage-home-provider | $STORAGE_STORAGE_REGISTRY_HOME_PROVIDER -: mount point of the storage provider for user homes in the global namespace. Default: `"/home"`. - - --storage-registry-json | $STORAGE_STORAGE_REGISTRY_JSON -: JSON file containing the storage registry rules. Default: `""`. - - --app-registry-driver | $STORAGE_APP_REGISTRY_DRIVER -: driver of the app registry. Default: `"static"`. - - --app-registry-mimetypes-json | $STORAGE_APP_REGISTRY_MIMETYPES_JSON -: JSON file containing the storage registry rules. Default: `""`. - - --public-url | $STORAGE_FRONTEND_PUBLIC_URL , $OCIS_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, defaults to /data. Default: `""`. - - --userprovider-endpoint | $STORAGE_USERPROVIDER_ENDPOINT -: endpoint to use for the userprovider. Default: `"localhost:9144"`. - - --groupprovider-endpoint | $STORAGE_GROUPPROVIDER_ENDPOINT -: endpoint to use for the groupprovider. Default: `"localhost:9160"`. - - --sharing-endpoint | $STORAGE_SHARING_ENDPOINT -: endpoint to use for the storage service. Default: `"localhost:9150"`. - - --appprovider-endpoint | $STORAGE_APPPROVIDER_ENDPOINT -: endpoint to use for the app provider. Default: `"localhost:9164"`. - - --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-public-link-mount-id | $STORAGE_PUBLIC_LINK_MOUNT_ID -: mount id. Default: `"e1a73ede-549b-4226-abdf-40e69ca8230d"`. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -### storage storage - -Storage service for oCIS - -Usage: `storage storage [command options] [arguments...]` - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --config-file | $STORAGE_CONFIG_FILE -: Path to config file. - - --log-level | $STORAGE_LOG_LEVEL , $OCIS_LOG_LEVEL -: Set logging level. - - --log-pretty | $STORAGE_LOG_PRETTY , $OCIS_LOG_PRETTY -: Enable pretty logging. - - --log-color | $STORAGE_LOG_COLOR , $OCIS_LOG_COLOR -: Enable colored logging. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -### storage sharing - -Start sharing service - -Usage: `storage sharing [command options] [arguments...]` - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --debug-addr | $STORAGE_SHARING_DEBUG_ADDR -: Address to bind debug server. Default: `"127.0.0.1:9151"`. - - --reva-gateway-addr | $REVA_GATEWAY -: Address of REVA gateway endpoint. Default: `"127.0.0.1:9142"`. - - --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: `"127.0.0.1:9150"`. - - --service | $STORAGE_SHARING_SERVICES -: --service usershareprovider [--service publicshareprovider]. Default: `cli.NewStringSlice("usershareprovider", "publicshareprovider")`. - - --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: `flags.OverrideDefaultString(cfg.Reva.Sharing.UserJSONFile, path.Join(defaults.BaseDataPath(), "storage", "shares.json"))`. - - --public-driver | $STORAGE_SHARING_PUBLIC_DRIVER -: driver to use for the PublicShareProvider. Default: `"json"`. - - --public-json-file | $STORAGE_SHARING_PUBLIC_JSON_FILE -: file used to persist shares for the PublicShareProvider. Default: `flags.OverrideDefaultString(cfg.Reva.Sharing.PublicJSONFile, path.Join(defaults.BaseDataPath(), "storage", "publicshares.json"))`. - - --public-password-hash-cost | $STORAGE_SHARING_PUBLIC_PASSWORD_HASH_COST -: the cost of hashing the public shares passwords. Default: `11`. - - --public-enable-expired-shares-cleanup | $STORAGE_SHARING_PUBLIC_ENABLE_EXPIRED_SHARES_CLEANUP -: whether to periodically delete expired public shares. Default: `true`. - - --public-janitor-run-interval | $STORAGE_SHARING_PUBLIC_JANITOR_RUN_INTERVAL -: the time period in seconds after which to start a janitor run. Default: `60`. - - - - - - - -### storage frontend - -Start frontend service - -Usage: `storage frontend [command options] [arguments...]` - - - - - - - - - - - - - - - - - - - - - - - - - - - --debug-addr | $STORAGE_FRONTEND_DEBUG_ADDR -: Address to bind debug server. Default: `"127.0.0.1:9141"`. - - --transfer-secret | $STORAGE_TRANSFER_SECRET -: Transfer secret for datagateway. Default: `"replace-me-with-a-transfer-secret"`. - - --chunk-folder | $STORAGE_CHUNK_FOLDER -: temp directory for chunked uploads. Default: `flags.OverrideDefaultString(cfg.Reva.OCDav.WebdavNamespace, path.Join(defaults.BaseDataPath(), "tmp", "chunks"))`. - - --webdav-namespace | $STORAGE_WEBDAV_NAMESPACE -: Namespace prefix for the /webdav endpoint. Default: `"/home/"`. - - --dav-files-namespace | $STORAGE_DAV_FILES_NAMESPACE -: Namespace prefix for the webdav /dav/files endpoint. Default: `"/users/"`. - - --archiver-max-num-files | $STORAGE_ARCHIVER_MAX_NUM_FILES -: Maximum number of files to be included in the archiver. Default: `10000`. - - --archiver-max-size | $STORAGE_ARCHIVER_MAX_SIZE -: Maximum size for the sum of the sizes of all the files included in the archive. Default: `1073741824`. - - --network | $STORAGE_FRONTEND_HTTP_NETWORK -: Network to use for the storage service, can be 'tcp', 'udp' or 'unix'. Default: `"tcp"`. - - --addr | $STORAGE_FRONTEND_HTTP_ADDR -: Address to bind storage service. Default: `"127.0.0.1:9140"`. - - --public-url | $STORAGE_FRONTEND_PUBLIC_URL , $OCIS_URL -: URL to use for the storage service. Default: `"https://localhost:9200"`. - - --service | $STORAGE_FRONTEND_SERVICES -: --service ocdav [--service ocs]. Default: `cli.NewStringSlice("datagateway", "ocdav", "ocs", "appprovider")`. - - --approvider-prefix | $STORAGE_FRONTEND_APPPROVIDER_PREFIX -: approvider prefix. Default: `""`. - - --approvider-insecure | $STORAGE_FRONTEND_APPPROVIDER_INSECURE , $OCIS_INSECURE -: approvider insecure. Default: `false`. - - --archiver-prefix | $STORAGE_FRONTEND_ARCHIVER_PREFIX -: archiver prefix. Default: `"archiver"`. - - --archiver-insecure | $STORAGE_FRONTEND_ARCHIVER_INSECURE , $OCIS_INSECURE -: archiver insecure. Default: `false`. - - --datagateway-prefix | $STORAGE_FRONTEND_DATAGATEWAY_PREFIX -: datagateway prefix. Default: `"data"`. - - --favorites | $STORAGE_FRONTEND_FAVORITES -: announces favorites support to clients. Default: `false`. - - --ocdav-prefix | $STORAGE_FRONTEND_OCDAV_PREFIX -: owncloud webdav endpoint prefix. Default: `""`. - - --ocdav-insecure | $STORAGE_FRONTEND_OCDAV_INSECURE , $OCIS_INSECURE -: owncloud webdav insecure. Default: `false`. - - --ocs-prefix | $STORAGE_FRONTEND_OCS_PREFIX -: open collaboration services endpoint prefix. Default: `"ocs"`. - - --ocs-share-prefix | $STORAGE_FRONTEND_OCS_SHARE_PREFIX -: the prefix prepended to the path of shared files. Default: `"/Shares"`. - - --ocs-home-namespace | $STORAGE_FRONTEND_OCS_HOME_NAMESPACE -: the prefix prepended to the incoming requests in OCS. Default: `"/home"`. - - --ocs-resource-info-cache-ttl | $STORAGE_FRONTEND_OCS_RESOURCE_INFO_CACHE_TTL -: the TTL for statted resources in the share cache. Default: `0`. - - --ocs-cache-warmup-driver | $STORAGE_FRONTEND_OCS_CACHE_WARMUP_DRIVER -: the driver to be used for warming up the share cache. Default: `""`. - - --ocs-additional-info-attribute | $STORAGE_FRONTEND_OCS_ADDITIONAL_INFO_ATTRIBUTE -: the additional info to be returned when searching for users. Default: `"{{.Mail}}"`. - - --reva-gateway-addr | $REVA_GATEWAY -: Address of REVA gateway endpoint. Default: `"127.0.0.1:9142"`. - - --default-upload-protocol | $STORAGE_FRONTEND_DEFAULT_UPLOAD_PROTOCOL -: Default upload chunking protocol to be used out of tus/v1/ng. Default: `"tus"`. - - --upload-max-chunk-size | $STORAGE_FRONTEND_UPLOAD_MAX_CHUNK_SIZE -: Max chunk size in bytes to advertise to clients through capabilities, or 0 for unlimited. Default: `1e+8`. - - --upload-http-method-override | $STORAGE_FRONTEND_UPLOAD_HTTP_METHOD_OVERRIDE -: Specify an HTTP method (ex: POST) that clients should to use when uploading instead of PATCH. Default: `""`. - - --checksum-supported-type | $STORAGE_FRONTEND_CHECKSUM_SUPPORTED_TYPES -: --checksum-supported-type sha1 [--checksum-supported-type adler32]. Default: `cli.NewStringSlice("sha1", "md5", "adler32")`. - - --checksum-preferred-upload-type | $STORAGE_FRONTEND_CHECKSUM_PREFERRED_UPLOAD_TYPE -: Specify the preferred checksum algorithm used for uploads. Default: `""`. - - --archiver-url | $STORAGE_FRONTEND_ARCHIVER_URL -: URL where the archiver is reachable. Default: `"/archiver"`. - - --appprovider-apps-url | $STORAGE_FRONTEND_APP_PROVIDER_APPS_URL -: URL where the app listing of the app provider is reachable. Default: `"/app/list"`. - - --appprovider-open-url | $STORAGE_FRONTEND_APP_PROVIDER_OPEN_URL -: URL where files can be handed over to an application from the app provider. Default: `"/app/open"`. - - --user-agent-whitelist-lock-in | $STORAGE_FRONTEND_MIDDLEWARE_AUTH_CREDENTIALS_BY_USER_AGENT -: --user-agent-whitelist-lock-in=mirall:basic,foo:bearer Given a tuple of comma separated [UserAgent:challenge] values, it locks a given user agent to the authentication challenge. Particularly useful for old clients whose USer-Agent is known and only support one authentication challenge. When this flag is set in the storage-frontend it configures Reva.. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -## Config for the different Storage Drivers - -You can set different storage drivers for the Storage Providers. Please check the storage provider configuration. - -Example: Set the home and users Storage Provider to `ocis` - -`STORAGE_HOME_DRIVER=ocis` -`STORAGE_USERS_DRIVER=ocis` - -### Local Driver - -### Eos Driver - -### owCloud Driver - -### ownCloudSQL Driver - -### Ocis Driver - -### S3ng Driver - diff --git a/extensions/store/configuration.md b/extensions/store/configuration.md deleted file mode 100644 index ae139990b93..00000000000 --- a/extensions/store/configuration.md +++ /dev/null @@ -1,215 +0,0 @@ ---- -title: "Configuration" -date: "2021-11-23T10:24:29+0000" -weight: 20 -geekdocRepo: https://github.com/owncloud/ocis -geekdocEditPath: edit/master/store/templates -geekdocFilePath: CONFIGURATION.tmpl ---- - -{{< toc >}} - -## Configuration - -### Configuration using config files - -Out of the box extensions will attempt to read configuration details from: - -```console -/etc/ocis -$HOME/.ocis -./config -``` - -For this configuration to be picked up, have a look at your extension `root` command and look for which default config name it has assigned. *i.e: ocis-proxy reads `proxy.json | yaml | toml ...`*. - -So far we support the file formats `JSON` and `YAML`, if you want to get a full example configuration just take a look at [our repository](https://github.com/owncloud/ocis/tree/master/store/config), there you can always see the latest configuration format. These example configurations include all available options and the default values. The configuration file will be automatically loaded if it's placed at `/etc/ocis/ocis.yml`, `${HOME}/.ocis/ocis.yml` or `$(pwd)/config/ocis.yml`. - -### Environment variables - -If you prefer to configure the service with environment variables you can see the available variables below. - -If multiple variables are listed for one option, they are in order of precedence. This means the leftmost variable will always win if given. - -### Command-line flags - -If you prefer to configure the service with command-line flags you can see the available variables below. Command line flags are only working when calling the subcommand directly. - -### store health - -Check health status - -Usage: `store health [command options] [arguments...]` - - - - - - --debug-addr | $STORE_DEBUG_ADDR -: Address to debug endpoint. Default: `"127.0.0.1:9464"`. - - - - - - - - - - - - - - - - - - -### store ocis-store - -Service to store values for ocis extensions - -Usage: `store ocis-store [command options] [arguments...]` - - --config-file | $STORE_CONFIG_FILE -: Path to config file. - - --log-level | $STORE_LOG_LEVEL , $OCIS_LOG_LEVEL -: Set logging level. - - --log-pretty | $STORE_LOG_PRETTY , $OCIS_LOG_PRETTY -: Enable pretty logging. - - --log-color | $STORE_LOG_COLOR , $OCIS_LOG_COLOR -: Enable colored logging. - - - - - - - - - - - - - - - - - - - -### store server - -Start integrated server - -Usage: `store server [command options] [arguments...]` - - - - - - - --log-file | $STORE_LOG_FILE , $OCIS_LOG_FILE -: Enable log to file. - - --tracing-enabled | $STORE_TRACING_ENABLED , $OCIS_TRACING_ENABLED -: Enable sending traces. - - --tracing-type | $STORE_TRACING_TYPE , $OCIS_TRACING_TYPE -: Tracing backend type. Default: `"jaeger"`. - - --tracing-endpoint | $STORE_TRACING_ENDPOINT , $OCIS_TRACING_ENDPOINT -: Endpoint for the agent. Default: `""`. - - --tracing-collector | $STORE_TRACING_COLLECTOR , $OCIS_TRACING_COLLECTOR -: Endpoint for the collector. Default: `""`. - - --tracing-service | $STORE_TRACING_SERVICE -: Service name for tracing. Default: `"store"`. - - --debug-addr | $STORE_DEBUG_ADDR -: Address to bind debug server. Default: `"127.0.0.1:9464"`. - - --debug-token | $STORE_DEBUG_TOKEN -: Token to grant metrics access. Default: `""`. - - --debug-pprof | $STORE_DEBUG_PPROF -: Enable pprof debugging. - - --debug-zpages | $STORE_DEBUG_ZPAGES -: Enable zpages debugging. - - --grpc-namespace | $STORE_GRPC_NAMESPACE -: Set the base namespace for the grpc namespace. Default: `"com.owncloud.api"`. - - --grpc-addr | $STORE_GRPC_ADDR -: Address to bind grpc server. Default: `"127.0.0.1:9460"`. - - --name | $STORE_NAME -: Service name. Default: `"store"`. - - --data-path | $STORE_DATA_PATH -: location of the store data path. Default: `flags.OverrideDefaultString(cfg.Datapath, path.Join(defaults.BaseDataPath(), "store"))`. - - --extensions | -: Run specific extensions during supervised mode. This flag is set by the runtime. - - - -### store version - -Print the versions of the running instances - -Usage: `store version [command options] [arguments...]` - - - - - - - - - - - - - - - - - - - - - - --grpc-namespace | $STORE_GRPC_NAMESPACE -: Set the base namespace for the grpc namespace. Default: `"com.owncloud.api"`. - - --name | $STORE_NAME -: Service name. Default: `"store"`. - diff --git a/extensions/thumbnails/configuration.md b/extensions/thumbnails/configuration.md deleted file mode 100644 index 2cc6435fa69..00000000000 --- a/extensions/thumbnails/configuration.md +++ /dev/null @@ -1,250 +0,0 @@ ---- -title: "Configuration" -date: "2021-11-23T10:24:33+0000" -weight: 20 -geekdocRepo: https://github.com/owncloud/ocis -geekdocEditPath: edit/master/thumbnails/templates -geekdocFilePath: CONFIGURATION.tmpl ---- - -{{< toc >}} - -## Configuration - -### Configuration using config files - -Out of the box extensions will attempt to read configuration details from: - -```console -/etc/ocis -$HOME/.ocis -./config -``` - -For this configuration to be picked up, have a look at your extension `root` command and look for which default config name it has assigned. *i.e: ocis-proxy reads `proxy.json | yaml | toml ...`*. - -So far we support the file formats `JSON` and `YAML`, if you want to get a full example configuration just take a look at [our repository](https://github.com/owncloud/ocis/tree/master/thumbnails/config), there you can always see the latest configuration format. These example configurations include all available options and the default values. The configuration file will be automatically loaded if it's placed at `/etc/ocis/ocis.yml`, `${HOME}/.ocis/ocis.yml` or `$(pwd)/config/ocis.yml`. - -### Environment variables - -If you prefer to configure the service with environment variables you can see the available variables below. - -If multiple variables are listed for one option, they are in order of precedence. This means the leftmost variable will always win if given. - -### Command-line flags - -If you prefer to configure the service with command-line flags you can see the available variables below. Command line flags are only working when calling the subcommand directly. - -### thumbnails server - -Start integrated server - -Usage: `thumbnails server [command options] [arguments...]` - - - --log-file | $THUMBNAILS_LOG_FILE , $OCIS_LOG_FILE -: Enable log to file. - - --log-level | $THUMBNAILS_LOG_LEVEL , $OCIS_LOG_LEVEL -: Set logging level. - - --log-pretty | $THUMBNAILS_LOG_PRETTY , $OCIS_LOG_PRETTY -: Enable pretty logging. - - --log-color | $THUMBNAILS_LOG_COLOR , $OCIS_LOG_COLOR -: Enable colored logging. - - --config-file | $THUMBNAILS_CONFIG_FILE -: Path to config file. - - --tracing-enabled | $THUMBNAILS_TRACING_ENABLED , $OCIS_TRACING_ENABLED -: Enable sending traces. - - --tracing-type | $THUMBNAILS_TRACING_TYPE , $OCIS_TRACING_TYPE -: Tracing backend type. Default: `"jaeger"`. - - --tracing-endpoint | $THUMBNAILS_TRACING_ENDPOINT , $OCIS_TRACING_ENDPOINT -: Endpoint for the agent. Default: `""`. - - --tracing-collector | $THUMBNAILS_TRACING_COLLECTOR , $OCIS_TRACING_COLLECTOR -: Endpoint for the collector. Default: `""`. - - --tracing-service | $THUMBNAILS_TRACING_SERVICE -: Service name for tracing. Default: `"thumbnails"`. - - --debug-addr | $THUMBNAILS_DEBUG_ADDR -: Address to bind debug server. Default: `"127.0.0.1:9189"`. - - --debug-token | $THUMBNAILS_DEBUG_TOKEN -: Token to grant metrics access. Default: `""`. - - --debug-pprof | $THUMBNAILS_DEBUG_PPROF -: Enable pprof debugging. - - --debug-zpages | $THUMBNAILS_DEBUG_ZPAGES -: Enable zpages debugging. - - --grpc-name | $THUMBNAILS_GRPC_NAME -: Name of the service. Default: `"thumbnails"`. - - --grpc-addr | $THUMBNAILS_GRPC_ADDR -: Address to bind grpc server. Default: `"127.0.0.1:9185"`. - - --grpc-namespace | $THUMBNAILS_GRPC_NAMESPACE -: Set the base namespace for the grpc namespace. Default: `"com.owncloud.api"`. - - --filesystemstorage-root | $THUMBNAILS_FILESYSTEMSTORAGE_ROOT -: Root path of the filesystem storage directory. Default: `flags.OverrideDefaultString(cfg.Thumbnail.FileSystemStorage.RootDirectory, path.Join(defaults.BaseDataPath(), "thumbnails"))`. - - --reva-gateway-addr | $REVA_GATEWAY -: Address of REVA gateway endpoint. Default: `"127.0.0.1:9142"`. - - --webdavsource-insecure | $THUMBNAILS_WEBDAVSOURCE_INSECURE , $OCIS_INSECURE -: Whether to skip certificate checks. Default: `false`. - - --cs3source-insecure | $THUMBNAILS_CS3SOURCE_INSECURE , $OCIS_INSECURE -: Whether to skip certificate checks. Default: `false`. - - --thumbnail-resolution | $THUMBNAILS_RESOLUTIONS -: --thumbnail-resolution 16x16 [--thumbnail-resolution 32x32]. Default: `cli.NewStringSlice("16x16", "32x32", "64x64", "128x128", "1920x1080", "3840x2160", "7680x4320")`. - - --webdav-namespace | $STORAGE_WEBDAV_NAMESPACE -: Namespace prefix for the webdav endpoint. Default: `"/home"`. - - --extensions | -: Run specific extensions during supervised mode. - - - -### thumbnails version - -Print the versions of the running instances - -Usage: `thumbnails version [command options] [arguments...]` - - - - - - - - - - - - - - - - - - - - - - - - - - - --grpc-name | $THUMBNAILS_GRPC_NAME -: Name of the service. Default: `"thumbnails"`. - - --grpc-namespace | $THUMBNAILS_GRPC_NAMESPACE -: Set the base namespace for the grpc namespace. Default: `"com.owncloud.api"`. - -### thumbnails health - -Check health status - -Usage: `thumbnails health [command options] [arguments...]` - - --debug-addr | $THUMBNAILS_DEBUG_ADDR -: Address to debug endpoint. Default: `"127.0.0.1:9189"`. - - - - - - - - - - - - - - - - - - - - - - - - - - - -### thumbnails ocis-thumbnails - -Example usage - -Usage: `thumbnails ocis-thumbnails [command options] [arguments...]` - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/extensions/web/configuration.md b/extensions/web/configuration.md deleted file mode 100644 index ace76a4f583..00000000000 --- a/extensions/web/configuration.md +++ /dev/null @@ -1,249 +0,0 @@ ---- -title: "Configuration" -date: "2021-11-23T10:24:37+0000" -weight: 20 -geekdocRepo: https://github.com/owncloud/ocis -geekdocEditPath: edit/master/web/templates -geekdocFilePath: CONFIGURATION.tmpl ---- - -{{< toc >}} - -## Configuration - -### Configuration using config files - -Out of the box extensions will attempt to read configuration details from: - -```console -/etc/ocis -$HOME/.ocis -./config -``` - -For this configuration to be picked up, have a look at your extension `root` command and look for which default config name it has assigned. *i.e: ocis-web reads `web.json | yaml | toml ...`*. - -So far we support the file formats `JSON` and `YAML`, if you want to get a full example configuration just take a look at [our repository](https://github.com/owncloud/ocis/tree/master/web/config), there you can always see the latest configuration format. These example configurations include all available options and the default values. The configuration file will be automatically loaded if it's placed at `/etc/ocis/ocis.yml`, `${HOME}/.ocis/ocis.yml` or `$(pwd)/config/ocis.yml`. - -### Environment variables - -If you prefer to configure the service with environment variables you can see the available variables below. - -If multiple variables are listed for one option, they are in order of precedence. This means the leftmost variable will always win if given. - -### Command-line flags - -If you prefer to configure the service with command-line flags you can see the available variables below. Command line flags are only working when calling the subcommand directly. - -## Root Command - -Serve ownCloud Web for oCIS - -Usage: `web [global options] command [command options] [arguments...]` - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -## Sub Commands - -### web health - -Check health status - -Usage: `web health [command options] [arguments...]` - - - - - --debug-addr | $WEB_DEBUG_ADDR -: Address to debug endpoint. Default: `"127.0.0.1:9104"`. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -### web server - -Start integrated server - -Usage: `web server [command options] [arguments...]` - - --log-level | $WEB_LOG_LEVEL , $OCIS_LOG_LEVEL -: Set logging level. - - --log-pretty | $WEB_LOG_PRETTY , $OCIS_LOG_PRETTY -: Enable pretty logging. - - --log-color | $WEB_LOG_COLOR , $OCIS_LOG_COLOR -: Enable colored logging. - - - --log-file | $WEB_LOG_FILE , $OCIS_LOG_FILE -: Enable log to file. - - --config-file | $WEB_CONFIG_FILE -: Path to config file. - - --tracing-enabled | $WEB_TRACING_ENABLED , $OCIS_TRACING_ENABLED -: Enable sending traces. - - --tracing-type | $WEB_TRACING_TYPE , $OCIS_TRACING_TYPE -: Tracing backend type. Default: `"jaeger"`. - - --tracing-endpoint | $WEB_TRACING_ENDPOINT , $OCIS_TRACING_ENDPOINT -: Endpoint for the agent. Default: `""`. - - --tracing-collector | $WEB_TRACING_COLLECTOR , $OCIS_TRACING_COLLECTOR -: Endpoint for the collector. Default: `""`. - - --tracing-service | $WEB_TRACING_SERVICE -: Service name for tracing. Default: `"web"`. - - --debug-addr | $WEB_DEBUG_ADDR -: Address to bind debug server. Default: `"127.0.0.1:9104"`. - - --debug-token | $WEB_DEBUG_TOKEN -: Token to grant metrics access. Default: `""`. - - --debug-pprof | $WEB_DEBUG_PPROF -: Enable pprof debugging. - - --debug-zpages | $WEB_DEBUG_ZPAGES -: Enable zpages debugging. - - --http-addr | $WEB_HTTP_ADDR -: Address to bind http server. Default: `"127.0.0.1:9100"`. - - --http-root | $WEB_HTTP_ROOT -: Root path of http server. Default: `"/"`. - - --http-namespace | $WEB_NAMESPACE -: Set the base namespace for the http namespace. Default: `"com.owncloud.web"`. - - --http-cache-ttl | $WEB_CACHE_TTL -: Set the static assets caching duration in seconds. Default: `604800`. - - --asset-path | $WEB_ASSET_PATH -: Path to custom assets. Default: `""`. - - --web-config | $WEB_UI_CONFIG -: Path to web config. Default: `""`. - - --web-config-server | $WEB_UI_CONFIG_SERVER , $OCIS_URL -: Configuration server URL. Default: `"https://localhost:9200"`. - - --web-theme-server | $WEB_UI_THEME_SERVER , $OCIS_URL -: Theme server URL. Default: `"https://localhost:9200"`. - - --web-config-theme | $WEB_UI_THEME_PATH -: Theme path on the theme server. Default: `"/themes/owncloud/theme.json"`. - - --web-config-version | $WEB_UI_CONFIG_VERSION -: Version. Default: `"0.1.0"`. - - --web-config-app | $WEB_UI_CONFIG_APPS -: `--web-config-app files [--web-config-app draw-io]`. Default: `cli.NewStringSlice("files", "search", "media-viewer", "external")`. - - --oidc-metadata-url | $WEB_OIDC_METADATA_URL -: OpenID Connect metadata URL, defaults to /.well-known/openid-configuration. Default: `""`. - - --oidc-authority | $WEB_OIDC_AUTHORITY , $OCIS_URL -: OpenID Connect authority. Default: `"https://localhost:9200"`. - - --oidc-client-id | $WEB_OIDC_CLIENT_ID -: OpenID Connect client ID. Default: `"web"`. - - --oidc-response-type | $WEB_OIDC_RESPONSE_TYPE -: OpenID Connect response type. Default: `"code"`. - - --oidc-scope | $WEB_OIDC_SCOPE -: OpenID Connect scope. Default: `"openid profile email"`. - - --extensions | -: Run specific extensions during supervised mode. This flag is set by the runtime. - diff --git a/extensions/webdav/configuration.md b/extensions/webdav/configuration.md deleted file mode 100644 index f7d795acb23..00000000000 --- a/extensions/webdav/configuration.md +++ /dev/null @@ -1,259 +0,0 @@ ---- -title: "Configuration" -date: "2021-11-23T10:24:37+0000" -weight: 20 -geekdocRepo: https://github.com/owncloud/ocis -geekdocEditPath: edit/master/webdav/templates -geekdocFilePath: CONFIGURATION.tmpl ---- - -{{< toc >}} - -## Configuration - -### Configuration using config files - -Out of the box extensions will attempt to read configuration details from: - -```console -/etc/ocis -$HOME/.ocis -./config -``` - -For this configuration to be picked up, have a look at your extension `root` command and look for which default config name it has assigned. *i.e: ocis-proxy reads `proxy.json | yaml | toml ...`*. - -So far we support the file formats `JSON` and `YAML`, if you want to get a full example configuration just take a look at [our repository](https://github.com/owncloud/ocis/tree/master/webdav/config), there you can always see the latest configuration format. These example configurations include all available options and the default values. The configuration file will be automatically loaded if it's placed at `/etc/ocis/ocis.yml`, `${HOME}/.ocis/ocis.yml` or `$(pwd)/config/ocis.yml`. - -### Environment variables - -If you prefer to configure the service with environment variables you can see the available variables below. - -If multiple variables are listed for one option, they are in order of precedence. This means the leftmost variable will always win if given. - -### Command-line flags - -If you prefer to configure the service with command-line flags you can see the available variables below. Command line flags are only working when calling the subcommand directly. - -## Root Command - -Serve WebDAV API for oCIS - -Usage: `webdav [global options] command [command options] [arguments...]` - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -## Sub Commands - -### webdav server - -Start integrated server - -Usage: `webdav server [command options] [arguments...]` - - - --log-file | $WEBDAV_LOG_FILE , $OCIS_LOG_FILE -: Enable log to file. - - --log-level | $WEBDAV_LOG_LEVEL , $OCIS_LOG_LEVEL -: Set logging level. - - --log-pretty | $WEBDAV_LOG_PRETTY , $OCIS_LOG_PRETTY -: Enable pretty logging. - - --log-color | $WEBDAV_LOG_COLOR , $OCIS_LOG_COLOR -: Enable colored logging. - - --config-file | $WEBDAV_CONFIG_FILE -: Path to config file. - - --tracing-enabled | $WEBDAV_TRACING_ENABLED , $OCIS_TRACING_ENABLED -: Enable sending traces. - - --tracing-type | $WEBDAV_TRACING_TYPE , $OCIS_TRACING_TYPE -: Tracing backend type. Default: `"jaeger"`. - - --tracing-endpoint | $WEBDAV_TRACING_ENDPOINT , $OCIS_TRACING_ENDPOINT -: Endpoint for the agent. Default: `""`. - - --tracing-collector | $WEBDAV_TRACING_COLLECTOR , $OCIS_TRACING_COLLECTOR -: Endpoint for the collector. Default: `""`. - - --tracing-service | $WEBDAV_TRACING_SERVICE -: Service name for tracing. Default: `"webdav"`. - - --debug-addr | $WEBDAV_DEBUG_ADDR -: Address to bind debug server. Default: `"127.0.0.1:9119"`. - - --debug-token | $WEBDAV_DEBUG_TOKEN -: Token to grant metrics access. Default: `""`. - - --debug-pprof | $WEBDAV_DEBUG_PPROF -: Enable pprof debugging. - - --debug-zpages | $WEBDAV_DEBUG_ZPAGES -: Enable zpages debugging. - - --http-addr | $WEBDAV_HTTP_ADDR -: Address to bind http server. Default: `"127.0.0.1:9115"`. - - --http-namespace | $WEBDAV_HTTP_NAMESPACE -: Set the base namespace for service discovery. Default: `"com.owncloud.web"`. - - --cors-allowed-origins | $WEBDAV_CORS_ALLOW_ORIGINS , $OCIS_CORS_ALLOW_ORIGINS -: Set the allowed CORS origins. Default: `cli.NewStringSlice("*")`. - - --cors-allowed-methods | $WEBDAV_CORS_ALLOW_METHODS , $OCIS_CORS_ALLOW_METHODS -: Set the allowed CORS origins. Default: `cli.NewStringSlice("GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS")`. - - --cors-allowed-headers | $WEBDAV_CORS_ALLOW_HEADERS , $OCIS_CORS_ALLOW_HEADERS -: Set the allowed CORS origins. Default: `cli.NewStringSlice("Authorization", "Origin", "Content-Type", "Accept", "X-Requested-With")`. - - --cors-allow-credentials | $WEBDAV_CORS_ALLOW_CREDENTIALS , $OCIS_CORS_ALLOW_CREDENTIALS -: Allow credentials for CORS. Default: `true`. - - --service-name | $WEBDAV_SERVICE_NAME -: Service name. Default: `"webdav"`. - - --http-root | $WEBDAV_HTTP_ROOT -: Root path of http server. Default: `"/"`. - - --ocis-public-url | $OCIS_PUBLIC_URL , $OCIS_URL -: The domain under which oCIS is reachable. Default: `"https://127.0.0.1:9200"`. - - --webdav-namespace | $STORAGE_WEBDAV_NAMESPACE -: Namespace prefix for the /webdav endpoint. Default: `"/home"`. - - --extensions | -: Run specific extensions during supervised mode. This flag is set by the runtime. - - - -### webdav version - -Print the versions of the running instances - -Usage: `webdav version [command options] [arguments...]` - - - - - - - - - - - - - - - - - - - - - - - - - - - - --http-namespace | $WEBDAV_HTTP_NAMESPACE -: Set the base namespace for service discovery. Default: `"com.owncloud.web"`. - - --service-name | $WEBDAV_SERVICE_NAME -: Service name. Default: `"webdav"`. - -### webdav health - -Check health status - -Usage: `webdav health [command options] [arguments...]` - - --debug-addr | $WEBDAV_DEBUG_ADDR -: Address to debug endpoint. Default: `"127.0.0.1:9119"`. - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/ocis/config.md b/ocis/config.md new file mode 100644 index 00000000000..aa6a367bf8f --- /dev/null +++ b/ocis/config.md @@ -0,0 +1,173 @@ +--- +title: "Configuration" +date: "2021-11-09T00:03:16+0100" +weight: 2 +geekdocRepo: https://github.com/owncloud/ocis +geekdocEditPath: edit/master/ocis/templates +geekdocFilePath: config.md +--- + +{{< toc >}} + +## Configuration Framework + +In order to simplify deployments and development the configuration model from oCIS aims to be simple yet flexible. + +## Overview of the approach + +{{< svg src="ocis/static/ocis-config-redesign.drawio.svg" >}} + +## In-depth configuration + +Since we include a set of predefined extensions within the single binary, configuring an extension can be done in a variety of ways. Since we work with complex types, having as many cli per config value scales poorly, so we limited the options to config files and environment variables, leaving cli flags for common values, such as logging (`--log-level`, `--log-pretty`, `--log-file` or `--log-color`). + +The hierarchy is clear enough, leaving us with: + +_(each element above overwrites its precedent)_ + +1. env variables +2. extension config +3. ocis config + +This is manifested in the previous diagram. We can then speak about "configuration file arithmetics", where resulting config transformations happen through a series of steps. An administrator must be aware of these sources, since mis-managing them can be a source of confusion, having undesired transformations on config files believed not to be applied. + +## Flows + +Let's explore the various flows with examples and workflows. + +### Examples + +Let's explore with examples this approach. + +#### Expected loading locations: + +- `$HOME/.ocis/config/` +- `/etc/ocis/` +- `.config/` + +followed by the extension name. When configuring the proxy, a valid full path that will get loaded is `$HOME/.ocis/config/proxy.yaml`. + +#### Only config files + +The following config files are present in the default loading locations: + +_ocis.yaml_ +```yaml +proxy: + http: + addr: localhost:1111 + log: + pretty: false + color: false + level: info +accounts: + http: + addr: localhost:2222 + log: + level: debug + color: false + pretty: false +log: + pretty: true + color: true + level: info +``` + +_proxy.yaml_ +```yaml +http: + addr: localhost:3333 +``` + +_accounts.yaml_ +```yaml +http: + addr: localhost:4444 +``` + +Note that the extension files will overwrite values from the main `ocis.yaml`, causing `ocis server` to run with the following configuration: + +```yaml +proxy: + http: + addr: localhost:3333 +accounts: + http: + addr: localhost:4444 +log: + pretty: true + color: true + level: info +``` + +#### Using ENV variables + +The logging configuration if defined in the main ocis.yaml is inherited by all extensions. It can be, however, overwritten by a single extension file if desired. The same example can be used to demonstrate environment values overwrites. With the same set of config files now we have the following command `PROXY_HTTP_ADDR=localhost:5555 ocis server`, now the resulting config looks like: + +```yaml +proxy: + http: + addr: localhost:5555 +accounts: + http: + addr: localhost:4444 +log: + pretty: true + color: true + level: info +``` + +### Workflows + +Since one can run an extension using the runtime (supervised) or not (unsupervised), we ensure correct behavior in both modes, expecting the same outputs. + +#### Supervised + +You are using the supervised mode whenever you issue the `ocis server` command. We start the runtime on port `9250` (by default) that listens for commands regarding the lifecycle of the supervised extensions. When an extension runs supervised and is killed, the only way to provide / overwrite configuration values will be through an extension config file. This is due to the parent process has already started, and it already has its own environment. + +#### Unsupervised + +All the points from the priority section hold true. An unsupervised extension can be started with the format: `ocis [extension]` i.e: `ocis proxy`. First, `ocis.yaml` is parsed, then `proxy.yaml` followed by environment variables. + +## Shared Values + +When running in supervised mode (`ocis server`) it is beneficial to have common values for logging, so that the log output is correctly formatted, or everything is piped to the same file without duplicating config keys and values all over the place. This is possible using the global `log` config key: + +_ocis.yaml_ +```yaml +log: + level: error + color: true + pretty: true + file: /var/tmp/ocis_output.log +``` + +There is, however, the option for extensions to overwrite this global values by declaring their own logging directives: + +_ocis.yaml_ +```yaml +log: + level: info + color: false + pretty: false +``` + +One can go as far as to make the case of an extension overwriting its shared logging config that received from the main `ocis.yaml` file. Because things can get out of hands pretty fast we recommend not mixing logging configuration values and either use the same global logging values for all extensions. + +{{< hint warning >}} +When overwriting a globally shared logging values, one *MUST* specify all values. +{{< /hint >}} + +### Log config keys + +```yaml +log: + level: [ error | warning | info | debug ] + color: [ true | false ] + pretty: [ true | false ] + file: [ path/to/log/file ] # MUST not be used with pretty = true +``` + +## Default config values (in yaml) + +TBD. Needs to be generated and merged with the env mappings. diff --git a/ocis/configuration.md b/ocis/configuration.md deleted file mode 100644 index d40473b81f5..00000000000 --- a/ocis/configuration.md +++ /dev/null @@ -1,382 +0,0 @@ ---- -title: "Configuration" -date: "2021-11-23T10:24:25+0000" -weight: 2 -geekdocRepo: https://github.com/owncloud/ocis -geekdocEditPath: edit/master/ocis/templates -geekdocFilePath: CONFIGURATION.tmpl ---- - -{{< toc >}} - -## Configuration - -oCIS Single Binary is not responsible for configuring extensions. Instead, each extension could either be configured by environment variables, cli flags or config files. - -Each extension has its dedicated documentation page (e.g. [proxy configuration]({{< relref "../extensions/accounts/configuration.md" >}})) which lists all possible configurations. Config files and environment variables are picked up if you use the `./bin/ocis server` command within the oCIS single binary. Command line flags must be set explicitly on the extensions subcommands. - -### Configuration using config files - -Out of the box extensions will attempt to read configuration details from: - -```console -/etc/ocis -$HOME/.ocis -./config -``` - -For this configuration to be picked up, have a look at your extension `root` command and look for which default config name it has assigned. *i.e: ocis-proxy reads `proxy.json | yaml | toml ...`*. - -So far we support the file formats `JSON` and `YAML`, if you want to get a full example configuration just take a look at [our repository](https://github.com/owncloud/ocis/tree/master/ocis/config), there you can always see the latest configuration format. These example configurations include all available options and the default values. The configuration file will be automatically loaded if it's placed at `/etc/ocis/ocis.yml`, `${HOME}/.ocis/ocis.yml` or `$(pwd)/config/ocis.yml`. - -### Environment variables - -If you prefer to configure the service with environment variables you can see the available variables below. - -If multiple variables are listed for one option, they are in order of precedence. This means the leftmost variable will always win if given. - -### Command-line flags - -If you prefer to configure the service with command-line flags you can see the available variables below. Command line flags are only working when calling the subcommand directly. - -## Root Command - -ownCloud Infinite Scale Stack - -Usage: `ocis [global options] command [command options] [arguments...]` - - --ocis-base-data-path | $OCIS_BASE_DATA_PATH -: Set the base path where oCIS stores data. - - --config-file | $OCIS_CONFIG_FILE -: Load config file from a non standard location.. - - --ocis-log-level | $OCIS_LOG_LEVEL -: Set logging level. Default: `info`. - - --ocis-log-pretty | $OCIS_LOG_PRETTY -: Enable pretty logging. Default: `false`. - - --ocis-log-color | $OCIS_LOG_COLOR -: Enable colored logging. Default: `true`. - - --ocis-log-file | $OCIS_LOG_FILE -: Enable log to file. - - --tracing-enabled | $OCIS_TRACING_ENABLED -: Enable sending traces. - - --tracing-type | $OCIS_TRACING_TYPE -: Tracing backend type. Default: `jaeger`. - - --tracing-endpoint | $OCIS_TRACING_ENDPOINT -: Endpoint for the agent. - - --tracing-collector | $OCIS_TRACING_COLLECTOR -: Endpoint for the collector. - - --tracing-service | $OCIS_TRACING_SERVICE -: Service name for tracing. Default: `ocis`. - - --jwt-secret | $OCIS_JWT_SECRET -: Used to dismantle the access token, should equal reva's jwt-secret. Default: `Pive-Fumkiu4`. - - --runtime-port | $OCIS_RUNTIME_PORT -: Configures which port the runtime starts. Default: `9250`. - - --runtime-host | $OCIS_RUNTIME_HOST -: Configures the host where the runtime process is running. Default: `localhost`. - - - - - - - - - - -## Sub Commands - -### ocis server - -Start fullstack server - -Usage: `ocis server [command options] [arguments...]` - - - - - - - - - - - - - - - - - --debug-addr | $OCIS_DEBUG_ADDR -: Address to bind debug server. Default: `127.0.0.1:9010`. - - --debug-token | $OCIS_DEBUG_TOKEN -: Token to grant metrics access. - - --debug-pprof | $OCIS_DEBUG_PPROF -: Enable pprof debugging. - - --debug-zpages | $OCIS_DEBUG_ZPAGES -: Enable zpages debugging. - - --http-addr | $OCIS_HTTP_ADDR -: Address to bind http server. Default: `127.0.0.1:9000`. - - --http-root | $OCIS_HTTP_ROOT -: Root path of http server. Default: `/`. - - --grpc-addr | $OCIS_GRPC_ADDR -: Address to bind grpc server. Default: `127.0.0.1:9001`. - - --extensions | $OCIS_RUN_EXTENSIONS -: Run specific extensions during supervised mode. - -### ocis kill - -Kill an extension by name - -Usage: `ocis kill [command options] [arguments...]` - - - - - - - - - - - - - - - - - - - - - - - - -### ocis list - -Lists running ocis extensions - -Usage: `ocis list [command options] [arguments...]` - - - - - - - - - - - - - - - - - - - - - - - - -### ocis run - -Runs an extension - -Usage: `ocis run [command options] [arguments...]` - - - - - - - - - - - - - - - - - - - - - - - - -### ocis health - -Check health status - -Usage: `ocis health [command options] [arguments...]` - - - - - - - - - - - - - - - - --debug-addr | $OCIS_DEBUG_ADDR -: Address to debug endpoint. Default: `127.0.0.1:9010`. - - - - - - - - - -### List of available Extension subcommands - -There are more subcommands to start the individual extensions. Please check the documentation about their usage and options in the dedicated section of the documentation. - -#### ocis accounts - -Start accounts server - -#### ocis proxy - -Start proxy server - -#### ocis storage-auth-basic - -Start storage auth-basic service - -#### ocis storage-groupprovider - -Start storage groupprovider service - -#### ocis storage-home - -Start storage and data provider for /home mount - -#### ocis storage-metadata - -Start storage and data service for metadata - -#### ocis store - -Start a go-micro store - -#### ocis storage-users - -Start storage and data provider for /users mount - -#### ocis storage-app-provider - -Start storage app-provider service - -#### ocis storage-auth-bearer - -Start storage auth-bearer service - -#### ocis version - -Lists running services with version - -#### ocis web - -Start web server - -#### ocis storage-public-link - -Start storage public link storage - -#### ocis glauth - -Start glauth server - -#### ocis idp - -Start idp server - -#### ocis ocs - -Start ocs server - -#### ocis settings - -Start settings server - -#### ocis storage-frontend - -Start storage frontend - -#### ocis storage-gateway - -Start storage gateway - -#### ocis storage-sharing - -Start storage sharing service - -#### ocis storage-userprovider - -Start storage userprovider service - -#### ocis thumbnails - -Start thumbnails server - -#### ocis webdav - -Start webdav server - diff --git a/ocis/deployment/basic-remote-setup.md b/ocis/deployment/basic-remote-setup.md index 6569309ab6b..efa76e1fdf5 100644 --- a/ocis/deployment/basic-remote-setup.md +++ b/ocis/deployment/basic-remote-setup.md @@ -53,7 +53,7 @@ PROXY_TRANSPORT_TLS_CERT=./certs/your-host.crt \ If you generated these certificates on your own, you might need to set `OCIS_INSECURE` to `true`. -For more configuration options check the configuration section in [oCIS]({{< ref "../configuration" >}}) and the oCIS extensions. +For more configuration options check the configuration section in [oCIS]({{< ref "../config" >}}) and the oCIS extensions. ## Start the oCIS fullstack server with Docker Compose diff --git a/ocis/getting-started/_index.md b/ocis/getting-started/_index.md index b602fcadabc..92e00c4390c 100644 --- a/ocis/getting-started/_index.md +++ b/ocis/getting-started/_index.md @@ -71,7 +71,7 @@ Open [https://localhost:9200](https://localhost:9200) and [login using one of th ### Basic Management Commands -The oCIS single binary contains multiple extensions and the `ocis` command helps you to manage them. You already used `ocis server` to run all available extensions in the [Run oCIS]({{< ref "#run-ocis" >}}) section. We now will show you some more management commands, which you may also explore by typing `ocis --help` or going to the [docs]({{< ref "../configuration" >}}). +The oCIS single binary contains multiple extensions and the `ocis` command helps you to manage them. You already used `ocis server` to run all available extensions in the [Run oCIS]({{< ref "#run-ocis" >}}) section. We now will show you some more management commands, which you may also explore by typing `ocis --help` or going to the [docs]({{< ref "../config" >}}). To start oCIS server: diff --git a/ocis/static/ocis-config-redesign.drawio.svg b/ocis/static/ocis-config-redesign.drawio.svg new file mode 100644 index 00000000000..ff2ee40fac5 --- /dev/null +++ b/ocis/static/ocis-config-redesign.drawio.svg @@ -0,0 +1,4 @@ + + + +
> ocis server
> ocis server

# global logging config
log:
  pretty: true
  color: true
  level: info
proxy:
  http:
    addr: localhost:9200
  log:
    pretty: false
    color: false
    level: info
accounts:
  log:
    level: debug
    color: false
    pretty: false

# global logging config...
ocis.yaml
ocis.yaml

  http:
    addr: localhost:1234
  log:
    pretty: false
    color: false
    level: info

http:...
proxy.yaml
proxy.yaml

  http:
    addr: localhost:5678


http:...
accounts.yaml
accounts.yaml
resulting proxy config values
resulting proxy config values
resulting accounts config values
resulting accounts config values

  http:
    addr: localhost:1234
  log:
    pretty: false
    color: false
    level: info


http:...
notice how even if ocis supplies
with logging configuration, the values
from the extension overwrite the inherited
values. This can also be achieved using an
environment variable.
notice how even if ocis supplies...

  http:
    addr: localhost:5678
  log:
    pretty: true
    color: true
    level: info


http:...
on the other hand here we see the extension
inherited the logging information from the parent.
The same holds true from any value. Values from
ocis.yaml are carried down to their respective
extensions.
on the other hand here we see the extension...
Viewer does not support full SVG 1.1
\ No newline at end of file