Files
opencloud/docs/extensions/webdav/configuration.md
2020-10-01 11:55:02 +02:00

4.0 KiB

title, date, weight, geekdocRepo, geekdocEditPath, geekdocFilePath
title date weight geekdocRepo geekdocEditPath geekdocFilePath
Configuration 2020-09-30T22:51:03+0200 20 https://github.com/owncloud/ocis edit/master/docs/extensions/webdav 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/ocis_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.

Root Command

Serve WebDAV API for oCIS

Usage: webdav [global options] command [command options] [arguments...]

--config-file | $WEBDAV_CONFIG_FILE
Path to config file.
--log-level | $WEBDAV_LOG_LEVEL
Set logging level. Default: info.
--log-pretty | $WEBDAV_LOG_PRETTY
Enable pretty logging. Default: true.
--log-color | $WEBDAV_LOG_COLOR
Enable colored logging. Default: true.

Sub Commands

webdav health

Check health status

Usage: webdav health [command options] [arguments...]

--debug-addr | $WEBDAV_DEBUG_ADDR
Address to debug endpoint. Default: 0.0.0.0:9119.

webdav server

Start integrated server

Usage: webdav server [command options] [arguments...]

--tracing-enabled | $WEBDAV_TRACING_ENABLED
Enable sending traces.
--tracing-type | $WEBDAV_TRACING_TYPE
Tracing backend type. Default: jaeger.
--tracing-endpoint | $WEBDAV_TRACING_ENDPOINT
Endpoint for the agent.
--tracing-collector | $WEBDAV_TRACING_COLLECTOR
Endpoint for the collector.
--tracing-service | $WEBDAV_TRACING_SERVICE
Service name for tracing. Default: webdav.
--debug-addr | $WEBDAV_DEBUG_ADDR
Address to bind debug server. Default: 0.0.0.0:9119.
--debug-token | $WEBDAV_DEBUG_TOKEN
Token to grant metrics access.
--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: 0.0.0.0:9115.
--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.
--http-root | $WEBDAV_HTTP_ROOT
Root path of http server. Default: /.

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.