Skip to main content

Environment Variables

Every field in the service's Go config struct tagged with env:"..." is parsed at runtime by the envdecode loader. The table below is regenerated whenever the service's config struct changes.

Environment variables for the music service

NameIntroduction VersionTypeDescriptionDefault Value
OC_LOG_LEVEL
MUSIC_LOG_LEVEL
stringThe log level. Valid values are: 'panic', 'fatal', 'error', 'warn', 'info', 'debug', 'trace'.``
MUSIC_DEBUG_ADDRstringBind address of the debug server.127.0.0.1:9268
MUSIC_DEBUG_TOKENstringToken to secure the metrics endpoint.``
MUSIC_DEBUG_PPROFboolEnables pprof.false
MUSIC_DEBUG_ZPAGESboolEnables zpages.false
MUSIC_HTTP_ADDRstringThe bind address of the HTTP service.0.0.0.0:9111
MUSIC_HTTP_ROOTstringSubdirectory that serves as the root for this HTTP service./
OC_CORS_ALLOW_ORIGINS
MUSIC_CORS_ALLOW_ORIGINS
[]string``[*]
OC_CORS_ALLOW_METHODS
MUSIC_CORS_ALLOW_METHODS
[]string``[GET POST HEAD]
OC_CORS_ALLOW_HEADERS
MUSIC_CORS_ALLOW_HEADERS
[]string``[Authorization Origin Content-Type Accept Range X-API-Key X-Request-Id]
OC_CORS_ALLOW_CREDENTIALS
MUSIC_CORS_ALLOW_CREDENTIALS
bool``false
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.``
OC_URL
MUSIC_OPENCLOUD_URL
stringBase URL of the OpenCloud instance (used for Graph API and WebDAV calls).https://host.docker.internal:9200
OC_INTERNAL_URL
MUSIC_OPENCLOUD_INTERNAL_URL
stringOptional internal URL used for service-to-service traffic (defaults to URL).``
OC_INSECURE
MUSIC_INSECURE
boolSkip TLS verification when talking to OpenCloud (self-signed certs in dev).false