Getting-started

Configuring your application

Tune database, mail, and optional AI settings with environment variables.

Pledger.io uses environment variables to configure the application.

General configuration options  

VariableDescriptionDefault
DB_TYPEThe type of database to use, allowed are h2 or mysqlh2

MySQL configuration options  

If the database type is set to mysql then the following environment variables are used.

VariableDescriptionDefault
DATABASE_HOSTThe MySQL server host, only if DB_TYPE is mysqllocalhost
DATABASE_SCHEMAThe MySQL schema to use, only if DB_TYPE is mysqlfintrack
DATABASE_PASSWORDThe MySQL user for authentication, only if DB_TYPE is mysqlfintrack

Mail configuration options  

When using the mail feature of Pledger.io the following environment variables are used.

VariableDescriptionDefault
SMTP_HOSTThe SMTP server host-
SMTP_USERThe SMTP user for authentication-
SMTP_PASSWORDThe SMTP password for authentication-

OpenID configuration options  

When you want ot enable OpenID connect in Pledger.io you will have to configure the following settings.

VariableDescriptionDefault
OPENID_URIThe URI to the certificate location for the Realm in OpenID-
OPENID_SECRETThe secret for the client-
OPENID_AUTHORITYThe URI to the realm-
OPENID_CLIENTThe client identifierpledger-io

Large Language Model options  

When either using the docker image ghcr.io/pledger-io/amd64-embedded-llm you can configure the following options. Alternatively you can use the normal image but use OpenAI, at the cost of some privacy.

VariableDescriptionDefault
AI_ENGINEThe engine to use. Supported are ollama and open-aiollama
AI_MODELThe Ollama model to use, only used with AI_ENGINE ‘ollama’qwen2.5-coder:1.5b
AI_AUGMENTER_ENABLEDShould the context for the LLM be expanded with budget, category and tag informationtrue
OPENAI_TOKENThe application token for OpenAI, must be set when AI_ENGINE is ‘open-ai’-
Last modified on July 4, 2026 Edit this page on GitHub