31 lines
4.8 KiB
Markdown
31 lines
4.8 KiB
Markdown
## Environment Variables
|
|
|
|
| Name | Type | Default Value | Description |
|
|
|------|------|---------------|-------------|
|
|
| OCIS_TRACING_ENABLED<br/>WEBDAV_TRACING_ENABLED | bool | false | Activates tracing.|
|
|
| OCIS_TRACING_TYPE<br/>WEBDAV_TRACING_TYPE | string | | The type of tracing. Defaults to '', which is the same as 'jaeger'. Allowed tracing types are 'jaeger' and '' as of now.|
|
|
| OCIS_TRACING_ENDPOINT<br/>WEBDAV_TRACING_ENDPOINT | string | | The endpoint of the tracing agent.|
|
|
| OCIS_TRACING_COLLECTOR<br/>WEBDAV_TRACING_COLLECTOR | string | | The HTTP endpoint for sending spans directly to a collector, i.e. http://jaeger-collector:14268/api/traces. Only used if the tracing endpoint is unset.|
|
|
| OCIS_LOG_LEVEL<br/>WEBDAV_LOG_LEVEL | string | | The log level. Valid values are: 'panic', 'fatal', 'error', 'warn', 'info', 'debug', 'trace'.|
|
|
| OCIS_LOG_PRETTY<br/>WEBDAV_LOG_PRETTY | bool | false | Activates pretty log output.|
|
|
| OCIS_LOG_COLOR<br/>WEBDAV_LOG_COLOR | bool | false | Activates colorized log output.|
|
|
| OCIS_LOG_FILE<br/>WEBDAV_LOG_FILE | string | | The path to the log file. Activates logging to this file if set.|
|
|
| WEBDAV_DEBUG_ADDR | string | 127.0.0.1:9119 | Bind address of the debug server, where metrics, health, config and debug endpoints will be exposed.|
|
|
| WEBDAV_DEBUG_TOKEN | string | | Token to secure the metrics endpoint.|
|
|
| WEBDAV_DEBUG_PPROF | bool | false | Enables pprof, which can be used for profiling.|
|
|
| WEBDAV_DEBUG_ZPAGES | bool | false | Enables zpages, which can be used for collecting and viewing in-memory traces.|
|
|
| WEBDAV_HTTP_ADDR | string | 127.0.0.1:9115 | The bind address of the HTTP service.|
|
|
| WEBDAV_HTTP_ROOT | string | / | Subdirectory that serves as the root for this HTTP service.|
|
|
| OCIS_CORS_ALLOW_ORIGINS<br/>WEBDAV_CORS_ALLOW_ORIGINS | []string | [*] | A list of allowed CORS origins. See following chapter for more details: *Access-Control-Allow-Origin* at https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin. See the Environment Variable Types description for more details.|
|
|
| OCIS_CORS_ALLOW_METHODS<br/>WEBDAV_CORS_ALLOW_METHODS | []string | [GET POST PUT PATCH DELETE OPTIONS] | A list of allowed CORS methods. See following chapter for more details: *Access-Control-Request-Method* at https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Request-Method. See the Environment Variable Types description for more details.|
|
|
| OCIS_CORS_ALLOW_HEADERS<br/>WEBDAV_CORS_ALLOW_HEADERS | []string | [Authorization Origin Content-Type Accept X-Requested-With X-Request-Id Cache-Control] | A list of allowed CORS headers. See following chapter for more details: *Access-Control-Request-Headers* at https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Request-Headers. See the Environment Variable Types description for more details.|
|
|
| OCIS_CORS_ALLOW_CREDENTIALS<br/>WEBDAV_CORS_ALLOW_CREDENTIALS | bool | true | Allow credentials for CORS.See following chapter for more details: *Access-Control-Allow-Credentials* at https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Credentials.|
|
|
| OCIS_HTTP_TLS_ENABLED | bool | false | Activates TLS for the http based services using the server certifcate and key configured via OCIS_HTTP_TLS_CERTIFICATE and OCIS_HTTP_TLS_KEY. If OCIS_HTTP_TLS_CERTIFICATE is not set a temporary server certificate is generated - to be used with PROXY_INSECURE_BACKEND=true.|
|
|
| OCIS_HTTP_TLS_CERTIFICATE | string | | Path/File name of the TLS server certificate (in PEM format) for the http services.|
|
|
| OCIS_HTTP_TLS_KEY | string | | Path/File name for the TLS certificate key (in PEM format) for the server certificate to use for the http services.|
|
|
| OCIS_DISABLE_PREVIEWS<br/>WEBDAV_DISABLE_PREVIEWS | bool | false | Set this option to 'true' to disable rendering of thumbnails triggered via webdav access. Note that when disabled, all access to preview related webdav paths will return a 404.|
|
|
| OCIS_URL<br/>OCIS_PUBLIC_URL | string | https://127.0.0.1:9200 | URL, where oCIS is reachable for users.|
|
|
| WEBDAV_WEBDAV_NAMESPACE | string | /users/{{.Id.OpaqueId}} | CS3 path layout to use when forwarding /webdav requests|
|
|
| OCIS_REVA_GATEWAY | string | com.owncloud.api.gateway | CS3 gateway used to look up user metadata|
|
|
| OCIS_REVA_GATEWAY_TLS_MODE | string | | TLS mode for grpc connection to the CS3 gateway endpoint. Possible values are 'off', 'insecure' and 'on'. 'off': disables transport security for the clients. 'insecure' allows using transport security, but disables certificate verification (to be used with the autogenerated self-signed certificates). 'on' enables transport security, including server certificate verification.|
|
|
| OCIS_REVA_GATEWAY_TLS_CACERT | string | | The root CA certificate used to validate the gateway's TLS certificate.| |