Zum Hauptinhalt springen

Environment Variables

Environment variables for the web service

NameIntroduction VersionTypeDescriptionDefault Value
OC_TRACING_ENABLED
WEB_TRACING_ENABLED
1.0.0boolActivates tracing.false
OC_TRACING_TYPE
WEB_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
WEB_TRACING_ENDPOINT
1.0.0stringThe endpoint of the tracing agent.
OC_TRACING_COLLECTOR
WEB_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
WEB_LOG_LEVEL
1.0.0stringThe log level. Valid values are: 'panic', 'fatal', 'error', 'warn', 'info', 'debug', 'trace'.
OC_LOG_PRETTY
WEB_LOG_PRETTY
1.0.0boolActivates pretty log output.false
OC_LOG_COLOR
WEB_LOG_COLOR
1.0.0boolActivates colorized log output.false
OC_LOG_FILE
WEB_LOG_FILE
1.0.0stringThe path to the log file. Activates logging to this file if set.
WEB_DEBUG_ADDR1.0.0stringBind address of the debug server, where metrics, health, config and debug endpoints will be exposed.127.0.0.1:9104
WEB_DEBUG_TOKEN1.0.0stringToken to secure the metrics endpoint.
WEB_DEBUG_PPROF1.0.0boolEnables pprof, which can be used for profiling.false
WEB_DEBUG_ZPAGES1.0.0boolEnables zpages, which can be used for collecting and viewing in-memory traces.false
WEB_HTTP_ADDR1.0.0stringThe bind address of the HTTP service.127.0.0.1:9100
OC_HTTP_TLS_ENABLED1.0.0boolActivates TLS for the http based services using the server certifcate and key configured via OC_HTTP_TLS_CERTIFICATE and OC_HTTP_TLS_KEY. If OC_HTTP_TLS_CERTIFICATE is not set a temporary server certificate is generated - to be used with PROXY_INSECURE_BACKEND=true.false
OC_HTTP_TLS_CERTIFICATE1.0.0stringPath/File name of the TLS server certificate (in PEM format) for the http services.
OC_HTTP_TLS_KEY1.0.0stringPath/File name for the TLS certificate key (in PEM format) for the server certificate to use for the http services.
WEB_HTTP_ROOT1.0.0stringSubdirectory that serves as the root for this HTTP service./
WEB_CACHE_TTL1.0.0intCache policy in seconds for OpenCloud Web assets.604800
OC_CORS_ALLOW_ORIGINS
WEB_CORS_ALLOW_ORIGINS
1.0.0[]stringA 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.[https://localhost:9200]
OC_CORS_ALLOW_METHODS
WEB_CORS_ALLOW_METHODS
1.0.0[]stringA 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.[OPTIONS HEAD GET PUT PATCH POST DELETE MKCOL PROPFIND PROPPATCH MOVE COPY REPORT SEARCH]
OC_CORS_ALLOW_HEADERS
WEB_CORS_ALLOW_HEADERS
1.0.0[]stringA 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.[Origin Accept Content-Type Depth Authorization Ocs-Apirequest If-None-Match If-Match Destination Overwrite X-Request-Id X-Requested-With Tus-Resumable Tus-Checksum-Algorithm Upload-Concat Upload-Length Upload-Metadata Upload-Defer-Length Upload-Expires Upload-Checksum Upload-Offset X-HTTP-Method-Override]
OC_CORS_ALLOW_CREDENTIALS
WEB_CORS_ALLOW_CREDENTIALS
1.0.0boolAllow 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.false
WEB_ASSET_CORE_PATH1.0.0stringServe OpenCloud Web assets from a path on the filesystem instead of the builtin assets. If not defined, the root directory derives from $OC_BASE_DATA_PATH/web/assets/core/home/chaser/.opencloud/web/assets/core
OC_ASSET_THEMES_PATH
WEB_ASSET_THEMES_PATH
1.0.0stringServe OpenCloud themes from a path on the filesystem instead of the builtin assets. If not defined, the root directory derives from $OC_BASE_DATA_PATH/web/assets/themes/home/chaser/.opencloud/web/assets/themes
WEB_ASSET_APPS_PATH1.0.0stringServe OpenCloud Web apps assets from a path on the filesystem instead of the builtin assets. If not defined, the root directory derives from $OC_BASE_DATA_PATH/web/assets/apps/home/chaser/.opencloud/web/assets/apps
WEB_UI_CONFIG_FILE1.0.0stringRead the OpenCloud Web json based configuration from this path/file. The config file takes precedence over WEB_OPTION_xxx environment variables. See the text description for more details.
OC_URL
WEB_UI_THEME_SERVER
1.0.0stringBase URL to load themes from. Will be prepended to the theme path.https://localhost:9200
WEB_UI_THEME_PATH1.0.0stringPath to the theme json file. Will be appended to the URL of the theme server./themes/opencloud/theme.json
OC_URL
WEB_UI_CONFIG_SERVER
1.0.0stringURL, where the OpenCloud APIs are reachable for OpenCloud Web.https://localhost:9200
WEB_OIDC_METADATA_URL1.0.0stringURL for the OIDC well-known configuration endpoint. Defaults to the OpenCloud API URL + '/.well-known/openid-configuration'.https://localhost:9200/.well-known/openid-configuration
OC_URL
OC_OIDC_ISSUER
WEB_OIDC_AUTHORITY
1.0.0stringURL of the OIDC issuer. It defaults to URL of the builtin IDP.https://localhost:9200
OC_OIDC_CLIENT_ID
WEB_OIDC_CLIENT_ID
1.0.0stringThe OIDC client ID which OpenCloud Web uses. This client needs to be set up in your IDP. Note that this setting has no effect when using the builtin IDP.web
WEB_OIDC_RESPONSE_TYPE1.0.0stringThe OIDC response type to use for authentication.code
WEB_OIDC_SCOPE1.0.0stringOIDC scopes to request during authentication to authorize access to user details. Defaults to 'openid profile email'. Values are separated by blank. More example values but not limited to are 'address' or 'phone' etc.openid profile email
WEB_OIDC_POST_LOGOUT_REDIRECT_URI1.0.0stringThis value needs to point to a valid and reachable web page. The web client will trigger a redirect to that page directly after the logout action. The default value is empty and redirects to the login page.
WEB_OPTION_OPEN_APPS_IN_TAB1.0.0boolConfigures whether apps and extensions should generally open in a new tab. Defaults to false.false
WEB_OPTION_DISABLE_FEEDBACK_LINK1.0.0boolSet this option to 'true' to disable the feedback link in the top bar. Keeping it enabled by setting the value to 'false' or with the absence of the option, allows OpenCloud to get feedback from your user base through a dedicated survey website.false
WEB_OPTION_RUNNING_ON_EOS1.0.0boolSet this option to 'true' if running on an EOS storage backend (\https://eos-web.web.cern.ch/eos-web/) to enable its specific features. Defaults to 'false'.false
WEB_OPTION_CONTEXTHELPERS_READ_MORE1.0.0boolSpecifies whether the 'Read more' link should be displayed or not.true
WEB_OPTION_LOGOUT_URL1.0.0stringAdds a link to the user's profile page to point him to an external page, where he can manage his session and devices. This is helpful when an external IdP is used. This option is disabled by default.
WEB_OPTION_LOGIN_URL1.0.0stringSpecifies the target URL to the login page. This is helpful when an external IdP is used. This option is disabled by default. Example URL like: \https://www.myidp.com/login.
WEB_OPTION_TOKEN_STORAGE_LOCAL1.0.0boolSpecifies whether the access token will be stored in the local storage when set to 'true' or in the session storage when set to 'false'. If stored in the local storage, login state will be persisted across multiple browser tabs, means no additional logins are required.true
WEB_OPTION_DISABLED_EXTENSIONS1.0.0[]stringA list to disable specific Web extensions identified by their ID. The ID can e.g. be taken from the 'index.ts' file of the web extension. Example: 'com.github.opencloud-eu.web.files.search,com.github.opencloud-eu.web.files.print'. See the Environment Variable Types description for more details.[]
WEB_OPTION_EMBED_ENABLED1.0.0stringDefines whether Web should be running in 'embed' mode. Setting this to 'true' will enable a stripped down version of Web with reduced functionality used to integrate Web into other applications like via iFrame. Setting it to 'false' or not setting it (default) will run Web as usual with all functionality enabled. See the text description for more details.
WEB_OPTION_EMBED_TARGET1.0.0stringDefines how Web is being integrated when running in 'embed' mode. Currently, the only supported options are '' (empty) and 'location'. With '' which is the default, Web will run regular as defined via the 'embed.enabled' config option. With 'location', Web will run embedded as location picker. Resource selection will be disabled and the selected resources array always includes the current folder as the only item. See the text description for more details.
WEB_OPTION_EMBED_MESSAGES_ORIGIN1.0.0stringDefines a URL under which Web can be integrated via iFrame in 'embed' mode. Note that setting this is mandatory when running Web in 'embed' mode. Use '*' as value to allow running the iFrame under any URL, although this is not recommended for security reasons. See the text description for more details.
WEB_OPTION_EMBED_DELEGATE_AUTHENTICATION1.0.0boolDefines whether Web should require authentication to be done by the parent application when running in 'embed' mode. If set to 'true' Web will not try to authenticate the user on its own but will require an access token coming from the parent application. Defaults to being unset.false
WEB_OPTION_EMBED_DELEGATE_AUTHENTICATION_ORIGIN1.0.0stringDefines the host to validate the message event origin against when running Web in 'embed' mode with delegated authentication. Defaults to event message origin validation being omitted, which is only recommended for development setups.
WEB_OPTION_USER_LIST_REQUIRES_FILTER1.0.0boolDefines whether one or more filters must be set in order to list users in the Web admin settings. Set this option to 'true' if running in an environment with a lot of users and listing all users could slow down performance. Defaults to 'false'.false
WEB_OPTION_CONCURRENT_REQUESTS_RESOURCE_BATCH_ACTIONS1.0.0intDefines the maximum number of concurrent requests per file/folder/space batch action. Defaults to 4.0
WEB_OPTION_CONCURRENT_REQUESTS_SSE1.0.0intDefines the maximum number of concurrent requests in SSE event handlers. Defaults to 4.0
WEB_OPTION_CONCURRENT_REQUESTS_SHARES_CREATE1.0.0intDefines the maximum number of concurrent requests per sharing invite batch. Defaults to 4.0
WEB_OPTION_CONCURRENT_REQUESTS_SHARES_LIST1.0.0intDefines the maximum number of concurrent requests when loading individual share information inside listings. Defaults to 2.0
OC_JWT_SECRET
WEB_JWT_SECRET
1.0.0stringThe secret to mint and validate jwt tokens.
WEB_GATEWAY_GRPC_ADDR1.0.0stringThe bind address of the GRPC service.eu.opencloud.api.gateway