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
| Name | Introduction Version | Type | Description | Default Value |
|---|---|---|---|---|
OC_LOG_LEVELMUSIC_LOG_LEVEL | string | The log level. Valid values are: 'panic', 'fatal', 'error', 'warn', 'info', 'debug', 'trace'. | `` | |
MUSIC_DEBUG_ADDR | string | Bind address of the debug server. | 127.0.0.1:9268 | |
MUSIC_DEBUG_TOKEN | string | Token to secure the metrics endpoint. | `` | |
MUSIC_DEBUG_PPROF | bool | Enables pprof. | false | |
MUSIC_DEBUG_ZPAGES | bool | Enables zpages. | false | |
MUSIC_HTTP_ADDR | string | The bind address of the HTTP service. | 0.0.0.0:9111 | |
MUSIC_HTTP_ROOT | string | Subdirectory that serves as the root for this HTTP service. | / | |
OC_CORS_ALLOW_ORIGINSMUSIC_CORS_ALLOW_ORIGINS | []string | `` | [*] | |
OC_CORS_ALLOW_METHODSMUSIC_CORS_ALLOW_METHODS | []string | `` | [GET POST HEAD] | |
OC_CORS_ALLOW_HEADERSMUSIC_CORS_ALLOW_HEADERS | []string | `` | [Authorization Origin Content-Type Accept Range X-API-Key X-Request-Id] | |
OC_CORS_ALLOW_CREDENTIALSMUSIC_CORS_ALLOW_CREDENTIALS | bool | `` | false | |
OC_HTTP_TLS_ENABLED | 1.0.0 | bool | Activates 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_CERTIFICATE | 1.0.0 | string | Path/File name of the TLS server certificate (in PEM format) for the http services. | `` |
OC_HTTP_TLS_KEY | 1.0.0 | string | Path/File name for the TLS certificate key (in PEM format) for the server certificate to use for the http services. | `` |
OC_URLMUSIC_OPENCLOUD_URL | string | Base URL of the OpenCloud instance (used for Graph API and WebDAV calls). | https://host.docker.internal:9200 | |
OC_INTERNAL_URLMUSIC_OPENCLOUD_INTERNAL_URL | string | Optional internal URL used for service-to-service traffic (defaults to URL). | `` | |
OC_INSECUREMUSIC_INSECURE | bool | Skip TLS verification when talking to OpenCloud (self-signed certs in dev). | false |