.env.sample
Set these on your host before deploying. Each platform has an “Environment Variables” section in the deploy flow.
LD_CONTAINER_NAME
Docker container name
LD_HOST_PORT
Port on the host system that the application should be published on
LD_HOST_DATA_DIR
Directory on the host system that should be mounted as data dir into the Docker container
LD_CONTEXT_PATH
Can be used to run linkding under a context path, for example: linkding/ Must end with a slash `/`
LD_SUPERUSER_NAME
Username of the initial superuser to create, leave empty to not create one
LD_SUPERUSER_PASSWORD
secret
Password for the initial superuser, leave empty to disable credentials authentication and rely on proxy authentication instead
LD_DISABLE_BACKGROUND_TASKS
Option to disable background tasks
LD_DISABLE_URL_VALIDATION
Option to disable URL validation for bookmarks completely
LD_ENABLE_AUTH_PROXY
Enables support for authentication proxies such as Authelia
LD_AUTH_PROXY_USERNAME_HEADER
Name of the request header that the auth proxy passes to the application to identify the user See docs/Options.md for more details
LD_AUTH_PROXY_LOGOUT_URL
The URL that linkding should redirect to after a logout, when using an auth proxy See docs/Options.md for more details
LD_DISABLE_LOGIN_FORM
Disables the login form, useful to enforce OIDC authentication
LD_CSRF_TRUSTED_ORIGINS
List of trusted origins from which to accept POST requests See docs/Options.md for more details
LD_DB_ENGINE
Database engine, can be sqlite (default) or postgres
LD_DB_DATABASE
Database name (default: linkding)
LD_DB_USER
Username to connect to the database server (default: linkding)
LD_DB_PASSWORD
secret
Password to connect to the database server
LD_DB_HOST
The hostname where the database is hosted (default: localhost)
LD_DB_PORT
Port use to connect to the database server Should use the default port if not set
LD_DB_OPTIONS
Any additional options to pass to the database (default: {})