Environment Variables
Configure Presenton using environment variables.
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 ifLLM
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 ifLLM
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 ifLLM
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"