Zum Hauptinhalt springen

Environment Variables

Environment variables for the gateway service

NameIntroduction VersionTypeDescriptionDefault Value
OC_TRACING_ENABLED
GATEWAY_TRACING_ENABLED
1.0.0boolActivates tracing.false
OC_TRACING_TYPE
GATEWAY_TRACING_TYPE
1.0.0stringThe type of tracing. Defaults to '', which is the same as 'jaeger'. Allowed tracing types are 'jaeger' and '' as of now.
OC_TRACING_ENDPOINT
GATEWAY_TRACING_ENDPOINT
1.0.0stringThe endpoint of the tracing agent.
OC_TRACING_COLLECTOR
GATEWAY_TRACING_COLLECTOR
1.0.0stringThe 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.
OC_LOG_LEVEL
GATEWAY_LOG_LEVEL
1.0.0stringThe log level. Valid values are: 'panic', 'fatal', 'error', 'warn', 'info', 'debug', 'trace'.
OC_LOG_PRETTY
GATEWAY_LOG_PRETTY
1.0.0boolActivates pretty log output.false
OC_LOG_COLOR
GATEWAY_LOG_COLOR
1.0.0boolActivates colorized log output.false
OC_LOG_FILE
GATEWAY_LOG_FILE
1.0.0stringThe path to the log file. Activates logging to this file if set.
GATEWAY_DEBUG_ADDR1.0.0stringBind address of the debug server, where metrics, health, config and debug endpoints will be exposed.127.0.0.1:9143
GATEWAY_DEBUG_TOKEN1.0.0stringToken to secure the metrics endpoint.
GATEWAY_DEBUG_PPROF1.0.0boolEnables pprof, which can be used for profiling.false
GATEWAY_DEBUG_ZPAGES1.0.0boolEnables zpages, which can be used for collecting and viewing in-memory traces.false
OC_GATEWAY_GRPC_ADDR
GATEWAY_GRPC_ADDR
1.0.0stringThe bind address of the GRPC service.127.0.0.1:9142
OC_GRPC_PROTOCOL
GATEWAY_GRPC_PROTOCOL
1.0.0stringThe transport protocol of the GRPC service.tcp
OC_JWT_SECRET
GATEWAY_JWT_SECRET
1.0.0stringThe secret to mint and validate jwt tokens.
OC_REVA_GATEWAY1.0.0stringThe CS3 gateway endpoint.eu.opencloud.api.gateway
OC_GRPC_CLIENT_TLS_MODE1.0.0stringTLS mode for grpc connection to the go-micro based grpc services. 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.
OC_GRPC_CLIENT_TLS_CACERT1.0.0stringPath/File name for the root CA certificate (in PEM format) used to validate TLS server certificates of the go-micro based grpc services.
GATEWAY_SKIP_USER_GROUPS_IN_TOKEN1.0.0boolDisables the loading of user's group memberships from the reva access token.false
GATEWAY_COMMIT_SHARE_TO_STORAGE_GRANT1.0.0boolCommit shares to storage grants. This grants access to shared resources for the share receiver directly on the storage.true
GATEWAY_SHARE_FOLDER_NAME1.0.0stringName of the share folder in users' home space.Shares
GATEWAY_DISABLE_HOME_CREATION_ON_LOGIN1.0.0boolDisable creation of the home space on login.true
OC_TRANSFER_SECRET1.0.0stringThe storage transfer secret.
GATEWAY_TRANSFER_EXPIRES1.0.0intExpiry for the gateway tokens.86400
OC_CACHE_STORE
GATEWAY_PROVIDER_CACHE_STORE
1.0.0stringThe type of the cache store. Supported values are: 'memory', 'redis-sentinel', 'nats-js-kv', 'noop'. See the text description for details.noop
OC_CACHE_STORE_NODES
GATEWAY_PROVIDER_CACHE_STORE_NODES
1.0.0[]stringA list of nodes to access the configured store. This has no effect when 'memory' store is configured. Note that the behaviour how nodes are used is dependent on the library of the configured store. See the Environment Variable Types description for more details.[127.0.0.1:9233]
OC_CACHE_DATABASE1.0.0stringThe database name the configured store should use.cache-providers
OC_CACHE_TTL
GATEWAY_PROVIDER_CACHE_TTL
1.0.0DurationDefault time to live for user info in the cache. Only applied when access tokens has no expiration. See the Environment Variable Types description for more details.5m0s
OC_CACHE_DISABLE_PERSISTENCE
GATEWAY_PROVIDER_CACHE_DISABLE_PERSISTENCE
1.0.0boolDisables persistence of the provider cache. Only applies when store type 'nats-js-kv' is configured. Defaults to false.false
OC_CACHE_AUTH_USERNAME
GATEWAY_PROVIDER_CACHE_AUTH_USERNAME
1.0.0stringThe username to use for authentication. Only applies when store type 'nats-js-kv' is configured.
OC_CACHE_AUTH_PASSWORD
GATEWAY_PROVIDER_CACHE_AUTH_PASSWORD
1.0.0stringThe password to use for authentication. Only applies when store type 'nats-js-kv' is configured.
OC_CACHE_STORE
GATEWAY_CREATE_HOME_CACHE_STORE
1.0.0stringThe type of the cache store. Supported values are: 'memory', 'redis-sentinel', 'nats-js-kv', 'noop'. See the text description for details.memory
OC_CACHE_STORE_NODES
GATEWAY_CREATE_HOME_CACHE_STORE_NODES
1.0.0[]stringA list of nodes to access the configured store. This has no effect when 'memory' store is configured. Note that the behaviour how nodes are used is dependent on the library of the configured store. See the Environment Variable Types description for more details.[127.0.0.1:9233]
OC_CACHE_DATABASE1.0.0stringThe database name the configured store should use.cache-createhome
OC_CACHE_TTL
GATEWAY_CREATE_HOME_CACHE_TTL
1.0.0DurationDefault time to live for user info in the cache. Only applied when access tokens has no expiration. See the Environment Variable Types description for more details.5m0s
OC_CACHE_DISABLE_PERSISTENCE
GATEWAY_CREATE_HOME_CACHE_DISABLE_PERSISTENCE
1.0.0boolDisables persistence of the create home cache. Only applies when store type 'nats-js-kv' is configured. Defaults to false.false
OC_CACHE_AUTH_USERNAME
GATEWAY_CREATE_HOME_CACHE_AUTH_USERNAME
1.0.0stringThe username to use for authentication. Only applies when store type 'nats-js-kv' is configured.
OC_CACHE_AUTH_PASSWORD
GATEWAY_CREATE_HOME_CACHE_AUTH_PASSWORD
1.0.0stringThe password to use for authentication. Only applies when store type 'nats-js-kv' is configured.
OC_URL
GATEWAY_FRONTEND_PUBLIC_URL
1.0.0stringThe public facing URL of the OpenCloud frontend.https://localhost:9200
GATEWAY_USERS_ENDPOINT1.0.0stringThe endpoint of the users service. Can take a service name or a gRPC URI with the dns, kubernetes or unix protocol.eu.opencloud.api.users
GATEWAY_GROUPS_ENDPOINT1.0.0stringThe endpoint of the groups service. Can take a service name or a gRPC URI with the dns, kubernetes or unix protocol.eu.opencloud.api.groups
GATEWAY_PERMISSIONS_ENDPOINT1.0.0stringThe endpoint of the permissions service. Can take a service name or a gRPC URI with the dns, kubernetes or unix protocol.eu.opencloud.api.settings
GATEWAY_SHARING_ENDPOINT1.0.0stringThe endpoint of the shares service. Can take a service name or a gRPC URI with the dns, kubernetes or unix protocol.eu.opencloud.api.sharing
GATEWAY_AUTH_APP_ENDPOINT1.0.0stringThe endpoint of the auth-app service. Can take a service name or a gRPC URI with the dns, kubernetes or unix protocol.eu.opencloud.api.auth-app
GATEWAY_AUTH_BASIC_ENDPOINT1.0.0stringThe endpoint of the auth-basic service. Can take a service name or a gRPC URI with the dns, kubernetes or unix protocol.eu.opencloud.api.auth-basic
GATEWAY_AUTH_BEARER_ENDPOINT1.0.0stringThe endpoint of the auth-bearer service. Can take a service name or a gRPC URI with the dns, kubernetes or unix protocol.
GATEWAY_AUTH_MACHINE_ENDPOINT1.0.0stringThe endpoint of the auth-machine service. Can take a service name or a gRPC URI with the dns, kubernetes or unix protocol.eu.opencloud.api.auth-machine
GATEWAY_AUTH_SERVICE_ENDPOINT1.0.0stringThe endpoint of the auth-service service. Can take a service name or a gRPC URI with the dns, kubernetes or unix protocol.eu.opencloud.api.auth-service
GATEWAY_STORAGE_PUBLIC_LINK_ENDPOINT1.0.0stringThe endpoint of the storage-publiclink service. Can take a service name or a gRPC URI with the dns, kubernetes or unix protocol.eu.opencloud.api.storage-publiclink
GATEWAY_STORAGE_USERS_ENDPOINT1.0.0stringThe endpoint of the storage-users service. Can take a service name or a gRPC URI with the dns, kubernetes or unix protocol.eu.opencloud.api.storage-users
GATEWAY_STORAGE_SHARES_ENDPOINT1.0.0stringThe endpoint of the storage-shares service. Can take a service name or a gRPC URI with the dns, kubernetes or unix protocol.eu.opencloud.api.storage-shares
GATEWAY_APP_REGISTRY_ENDPOINT1.0.0stringThe endpoint of the app-registry service. Can take a service name or a gRPC URI with the dns, kubernetes or unix protocol.eu.opencloud.api.app-registry
GATEWAY_OCM_ENDPOINT1.0.0stringThe endpoint of the ocm service. Can take a service name or a gRPC URI with the dns, kubernetes or unix protocol.eu.opencloud.api.ocm
GATEWAY_STORAGE_REGISTRY_DRIVER1.0.0stringThe driver name of the storage registry to use.spaces
GATEWAY_STORAGE_REGISTRY_RULES1.0.0[]stringThe rules for the storage registry. See the Environment Variable Types description for more details.[]
GATEWAY_STORAGE_REGISTRY_CONFIG_JSON1.0.0stringAdditional configuration for the storage registry in json format.
GATEWAY_STORAGE_USERS_MOUNT_ID1.0.0stringMount ID of this storage. Admins can set the ID for the storage in this config option manually which is then used to reference the storage. Any reasonable long string is possible, preferably this would be an UUIDv4 format.