Merge:94ceea6f358cf124Author: Phil Davis <phil@jankaritech.com> Date: Wed Nov 18 17:01:42 2020 +0545 Merge pull request #853 from owncloud/enable-more-test [tests-only] Add group tests on expected failure file
5.0 KiB
title, date, weight, geekdocRepo, geekdocEditPath, geekdocFilePath
| title | date | weight | geekdocRepo | geekdocEditPath | geekdocFilePath |
|---|---|---|---|---|---|
| Configuration | 2020-11-18T12:06:56+0000 | 20 | https://github.com/owncloud/ocis | edit/master/docs/extensions/proxy | configuration.md |
{{< 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. https://owncloud.github.io/extensions/proxy/configuration/) 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:
/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, 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.
Envrionment variables
If you prefer to configure the service with environment variables you can see the available variables below.
Commandline flags
If you prefer to configure the service with commandline flags you can see the available variables below. Command line flags are only working when calling the subcommand directly.
proxy server
Start integrated server
Usage: proxy server [command options] [arguments...]
- --config-file | $PROXY_CONFIG_FILE
- Path to config file.
- --tracing-enabled | $PROXY_TRACING_ENABLED
- Enable sending traces.
- --tracing-type | $PROXY_TRACING_TYPE
- Tracing backend type. Default:
jaeger. - --tracing-endpoint | $PROXY_TRACING_ENDPOINT
- Endpoint for the agent.
- --tracing-collector | $PROXY_TRACING_COLLECTOR
- Endpoint for the collector. Default:
http://localhost:14268/api/traces. - --tracing-service | $PROXY_TRACING_SERVICE
- Service name for tracing. Default:
proxy. - --debug-addr | $PROXY_DEBUG_ADDR
- Address to bind debug server. Default:
0.0.0.0: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:
/. - --asset-path | $PROXY_ASSET_PATH
- Path to custom assets.
- --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.
- --transport-tls-key | $PROXY_TRANSPORT_TLS_KEY
- Secret file for transport encryption.
- --tls | $PROXY_TLS
- Use TLS (disable only if proxy is behind a TLS-terminating reverse-proxy).. Default:
true. - --jwt-secret | $PROXY_JWT_SECRET
- Used to create JWT to talk to reva, should equal reva's jwt-secret. Default:
Pive-Fumkiu4. - --reva-gateway-addr | $PROXY_REVA_GATEWAY_ADDR
- REVA Gateway Endpoint. Default:
127.0.0.1:9142. - --oidc-issuer | $PROXY_OIDC_ISSUER
- OIDC issuer. Default:
https://localhost:9200. - --oidc-insecure | $PROXY_OIDC_INSECURE
- OIDC allow insecure communication. Default:
true. - --autoprovision-accounts | $PROXY_AUTOPROVISION_ACCOUNTS
- create accounts from OIDC access tokens to learn new users. Default:
false. - --enable-basic-auth | $PROXY_ENABLE_BASIC_AUTH
- enable basic authentication. Default:
false.
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:
0.0.0.0:9109.
proxy ocis-proxy
proxy for Reva/oCIS
Usage: proxy ocis-proxy [command options] [arguments...]
- --log-level | $PROXY_LOG_LEVEL
- Set logging level. Default:
info. - --log-pretty | $PROXY_LOG_PRETTY
- Enable pretty logging. Default:
true. - --log-color | $PROXY_LOG_COLOR
- Enable colored logging. Default:
true.