Skip to content

Update the config related docs to be clearer on the exact valid environment variables. #3040

@hayone1

Description

@hayone1

I just spent almost 2 days trying to configure listmonk to work with environment variables beyond the "LISTMONK_db" config.

The first big challenge was that the docs seem to suggests that environment variables can be used in the same way as toml and is not explicit about stating that the "Example:" given also represent the only keys supported.

As I began to research, certain issues led me down a wrong path, eg. this issue solution from 2020 clearly shows smtp configuration from environment variables—This one too.
Then we have this code that seems like it nicely merges environment variables with the toml config.

Another issue is that I couldn't find a list of the toml supported values. I had to locate it from this issue and this code. Digging a little more, there is also this.

AI was also leading me on and I persisted in my approach until I found this 2025 issue did I give up. Unfortunately, Github does not recommend this issue when you search even with the relevant keywords. Even if you go very specific, eg. you search for "LISTMONK_smtp__". Github just comes up with an empty result

To prevent hundreds like me from going through this, it would be great to be explicit in the docs or to actually support it.

It would be nice to configure something like the below.

LISTMONK_upload__provider
LISTMONK_upload__s3__aws_access_key_id
LISTMONK_upload__s3__aws_secret_access_key
LISTMONK_upload__s3__bucket
LISTMONK_upload__s3__bucket_path
LISTMONK_upload__s3__bucket_type
LISTMONK_upload__s3__url

Thanks so much for an awesome app

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions