Files
ocis/extensions/graph-explorer/configuration.md
T
Phil Davis cfdc0b4e1b commit d9894560d7
Merge: 6fad2312 c9515ecb
Author: Phil Davis <phil@jankaritech.com>
Date:   Fri Feb 19 15:24:56 2021 +0300

    Merge pull request #1682 from owncloud/bump-core-commit-id-20210219

    [tests-only] Bump core commit id for tests
2021-02-19 12:30:19 +00:00

3.6 KiB

title, date, weight, geekdocRepo, geekdocEditPath, geekdocFilePath
title date weight geekdocRepo geekdocEditPath geekdocFilePath
Configuration 2021-02-19T12:29:49+0000 20 https://github.com/owncloud/ocis edit/master/graph-explorer/templates CONFIGURATION.tmpl

{{< toc >}}

Configuration

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.

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.

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 Graph-Explorer for oCIS

Usage: graph-explorer [global options] command [command options] [arguments...]

-log-level | $GRAPH_EXPLORER_LOG_LEVEL
Set logging level. Default: info.
-log-pretty | $GRAPH_EXPLORER_LOG_PRETTY
Enable pretty logging. Default: true.
-log-color | $GRAPH_EXPLORER_LOG_COLOR
Enable colored logging. Default: true.

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: 0.0.0.0:9136.

graph-explorer server

Start integrated server

Usage: graph-explorer server [command options] [arguments...]

-tracing-enabled | $GRAPH_EXPLORER_TRACING_ENABLED
Enable sending traces.
-tracing-type | $GRAPH_EXPLORER_TRACING_TYPE
Tracing backend type. Default: jaeger.
-tracing-endpoint | $GRAPH_EXPLORER_TRACING_ENDPOINT
Endpoint for the agent.
-tracing-collector | $GRAPH_EXPLORER_TRACING_COLLECTOR
Endpoint for the collector.
-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: 0.0.0.0:9136.
-debug-token | $GRAPH_EXPLORER_DEBUG_TOKEN
Token to grant metrics access.
-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: 0.0.0.0:9135.
-http-root | $GRAPH_EXPLORER_HTTP_ROOT
Root path of http server. Default: /.
-http-namespace | $GRAPH_EXPLORER_NAMESPACE
Set the base namespace for the http namespace. Default: com.owncloud.web.
-issuer | $GRAPH_EXPLORER_ISSUER
Set the OpenID Connect Provider. Default: https://localhost:9130.
-client-id | $GRAPH_EXPLORER_CLIENT_ID
Set the OpenID Client ID to send to the issuer. Default: ocis-explorer.js.
-graph-url | $GRAPH_EXPLORER_GRAPH_URL
Set the url to the graph api service. Default: http://localhost:9120.