[GH-ISSUE #300] Goeland Seems to Ignore/Not Read Some Environment Variables #49

Closed
opened 2026-09-29 12:59:05 +00:00 by slurdge · 4 comments
Owner

Originally created by @ghost on GitHub (Apr 20, 2026).
Original GitHub issue: https://github.com/slurdge/goeland/issues/300

Describe the bug
I run goeland in daemon mode in docker. While it seems to pickup and read some environment variables set, it doesn't read them all. GOELAND_EMAIL_INCLUDE_HEADER=false and GOELAND_EMAIL_INCLUDE_FOOTER=false seem to be at least two that are ignored. These must be configured on the config.toml to be read, as far as I can tell.

To Reproduce
Steps to reproduce the behavior:

  1. Run Goeland in docker in daemon mode
  2. Provide it with environment variables like above
  3. Still get headers and footers

Expected behavior
I should not be getting headers and footers with the above example environment variables.

Screenshots
N/A

Desktop (please complete the following information):
N/A

Smartphone (please complete the following information):
N/A

Additional context
N/A

Originally created by @ghost on GitHub (Apr 20, 2026). Original GitHub issue: https://github.com/slurdge/goeland/issues/300 **Describe the bug** I run goeland in daemon mode in docker. While it seems to pickup and read some environment variables set, it doesn't read them all. `GOELAND_EMAIL_INCLUDE_HEADER=false` and `GOELAND_EMAIL_INCLUDE_FOOTER=false` seem to be at least two that are ignored. These must be configured on the `config.toml` to be read, as far as I can tell. **To Reproduce** Steps to reproduce the behavior: 1. Run Goeland in docker in daemon mode 2. Provide it with environment variables like above 3. Still get headers and footers **Expected behavior** I should not be getting headers and footers with the above example environment variables. **Screenshots** N/A **Desktop (please complete the following information):** N/A **Smartphone (please complete the following information):** N/A **Additional context** N/A
Author
Owner

@slurdge commented on GitHub (Apr 20, 2026):

Thanks for the report.
There is nothing special for those env variables, as all env variables are derived from config. I'll check as to why it's not taken into account.

<!-- gh-comment-id:4281343964 --> @slurdge commented on GitHub (Apr 20, 2026): Thanks for the report. There is nothing special for those env variables, as all env variables are derived from config. I'll check as to why it's not taken into account.
Author
Owner

@ghost commented on GitHub (Apr 20, 2026):

And just to confirm, I'm not running some old crazy version! Docker image: ghcr.io/slurdge/goeland:v0.23.0 🫡

<!-- gh-comment-id:4281355214 --> @ghost commented on GitHub (Apr 20, 2026): And just to confirm, I'm not running some old crazy version! Docker image: `ghcr.io/slurdge/goeland:v0.23.0` 🫡
Author
Owner

@slurdge commented on GitHub (Apr 20, 2026):

I think it comes from the fact I forgot to specify viper.SetEnvPrefix("goeland"). You could try without the GOELAND_ (but as I would fix the bug, it would break later)

<!-- gh-comment-id:4281403578 --> @slurdge commented on GitHub (Apr 20, 2026): I think it comes from the fact I forgot to specify `viper.SetEnvPrefix("goeland")`. You could try without the `GOELAND_` (but as I would fix the bug, it would break later)
Author
Owner

@ghost commented on GitHub (Apr 20, 2026):

Edit: moved to #301

<!-- gh-comment-id:4281440020 --> @ghost commented on GitHub (Apr 20, 2026): Edit: moved to #301
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: slurdge/goeland#49
No description provided.