Skip to main content

Server Setup

Environment Variables

There are a few environment variables which can be set on your PromptPanel container to help customize your experience - below is a listing:

Environment Variable Default Notes
PROMPT_BRAND_COLOR #2D72D2 Hex code
PROMPT_LOG_LEVEL ERROR `ERROR` / `INFO` / `DEBUG`
PROMPT_MODE DEVELOPMENT `DEVELOPMENT` / `PRODUCTION`
PROMPT_DEV_INSTALL_REQS DISABLED Install `requirements.txt` files on container start.
PROMPT_OLLAMA_HOST - Base URL (example: `http://ollama:11434`)
PROMPT_WORKERS 2 Workers for Gunicorn (`PRODUCTION`)
PROMPT_WORKER_TIMEOUT 600 Timeout for workers (`PRODUCTION`)
PROMPT_MAX_FILESIZE 26214400 In bytes
PROMPT_USER_ALLOWED_DOMAINS - List of domains (`domain1.com`,`domain2.com`)
PROMPT_USER_SIGNUP DISABLED Allow users to sign-up.
PROMPT_USER_SIGNUP_ACTIVATE DISABLED Allow users to self-service activate (via email).
PROMPT_USER_RESET_PASSWORD DISABLED Allow users to self-service reset their password (via email).
PROMPT_ACCESS_TOKEN_EXP_MINUTES 480
PROMPT_REFRESH_TOKEN_EXP_MINUTES 43200
PROMPT_SMTP_HOST -
PROMPT_SMTP_USE_TLS -
PROMPT_SMTP_PORT -
PROMPT_SMTP_USER -
PROMPT_SMTP_PASSWORD -
PROMPT_SMTP_FROM_ADDRESS - example: [email protected]
PROMPT_OIDC_DISPLAY_NAME - Display name (used for visual)
PROMPT_OIDC_CLIENT_ID -
PROMPT_OIDC_CLIENT_SECRET -
PROMPT_OIDC_AUTHORIZE_URL -
PROMPT_OIDC_ACCESS_TOKEN_URL -
PROMPT_OIDC_USERINFO_URL -
PROMPT_OIDC_KWARGS -
PROMPT_PG_HOST - Hostname (example: `postgres` for the `postgres`container)
PROMPT_PG_PORT - Example: `5432`
PROMPT_PG_DBNAME - Example: `postgres`
PROMPT_PG_USER - Example: `user`
PROMPT_PG_PASS - Example: `password`
PROMPT_LICENSE_EMAIL - Enterprise, self-hosted licence key
PROMPT_LICENSE_KEY - Enterprise, self-hosted licence key