Presenton can be customized and secured using environment variables. Below are the key variables you can set when running the app:

  • CAN_CHANGE_KEYS
    Controls whether users can modify API keys through the app interface.
    Set to "false" to keep keys hidden and unchangeable, or "true" to allow changes.
    Example: CAN_CHANGE_KEYS="false"

  • LLM
    Select which Large Language Model provider Presenton should use.
    Supported values: "openai", "google", "ollama".
    Example: LLM="openai"

  • OPENAI_API_KEY
    Your OpenAI API key. Required if LLM is set to "openai".
    Example: OPENAI_API_KEY="sk-xxxxxxxxxxxxxxxx"

    For image generation you might need to Verify Organization

  • GOOGLE_API_KEY
    Your Google API key. Required if LLM is set to "google".
    Example: GOOGLE_API_KEY="AIzaSyXXXXXXXXXXXX"

    Image generation does not work in EU Region. Choose Ollama or OpenAI instead.

  • OLLAMA_MODEL
    The Ollama model name to use. Required if LLM is set to "ollama".
    Example: OLLAMA_MODEL="llama3.2:3b"

  • PEXELS_API_KEY
    API key for the Pexels image service. Optional but recommended when using Ollama models to enhance image search.
    Example: PEXELS_API_KEY="vzXXXXXXXXXXXXXX"

Example: Running Presenton with Environment Variables

docker run -it --name presenton -p 5000:80 \
  -e LLM="openai" \
  -e OPENAI_API_KEY="your_openai_api_key" \
  -e CAN_CHANGE_KEYS="false" \
  -v "./user_data:/app/user_data" \
  ghcr.io/presenton/presenton:v0.3.0-beta