Environment Variables
Playnite Web App
Playnite Web requires configured environment variables. Below are all supported environment variables and their purpose.
Note all environment variables are strings.
Environment Variable | Value | Required? | Example Value | Notes |
|---|---|---|---|---|
PORT | Defaults to |
| 3000 | Port in which web application is accessible. |
HOST | Defaults to |
|
| The domain/host that you will use to access Playnite Web in the browser. |
DATABASE_URL |
| Required |
| Connection string for database. Replace |
SECRET |
| Required |
| Secret used to protect credentials . |
DISABLE_CSP |
|
|
| May be useful when accessing via local LAN only. Will negate other options: |
CSP_ORIGINS | Origins in which images, styles, fonts, and scripts are allowed to be loaded. |
|
| Multiple values may be provided via a comma-delimited string. |
ADDITIONAL_ORIGINS | Additional origins allowed to request graph API. |
|
| Multiple values may be provided via a comma-delimited string. |
MQTT_HOST |
| Required |
| Hostname for MQTT broker. |
MQTT_PORT | Defaults to |
|
| Port used to access MQTT broker. |
MQTT_USERNAME |
|
|
| Used when MQTT broker has been configured to require a username/password. |
MQTT_PASSWORD |
|
|
| Used when MQTT broker has been configured to require a username/password. |
Playnite Web Sync Library Processor
Environment Variable | Value | Required? | Example Value | Notes |
|---|---|---|---|---|
PORT | Defaults to |
| 3000 | Port in which web application is accessible. |
DATABASE_URL |
| Required |
| Connection string for database. Replace |
MQTT_HOST |
| Required |
| Hostname for MQTT broker. |
MQTT_PORT | Defaults to |
| 1883 | Port used to access MQTT broker. |
MQTT_USERNAME |
|
|
| Used when MQTT broker has been configured to require a username/password. |
MQTT_PASSWORD |
|
|
| Used when MQTT broker has been configured to require a username/password. |
COVER_ART_PATH |
| Required |
| Path to store downloaded cover art. Should map to a volume. |