Environment Variables
Server-side configuration.
The binary executable can also be configured using environment variables.
Note, you must opt-in to this by setting the -env
flag when starting the server. This mode of configuration is useful for containerized environments like Docker where it is difficult to pass command-line arguments.
Variables
-
APP_DATABASE_HOST
: Path to app database. Default is./me_meta.db
. -
ANALYTICS_DATABASE_HOST
: Path to analytics database. Default is./me_analytics.db
. -
PORT
: Port to listen on. Default is8080
. -
LOGGER
: Logger format. Default isjson
. Options arejson
andpretty
. -
LEVEL
: Logger level. Default isinfo
. Options aredebug
,info
,warn
, anderror
. -
CORS_ALLOWED_ORIGINS
: Comma-separated list of allowed CORS origins on API routes. Useful for external dashboards that may host the frontend on a different domain.