Skip to content

Homepage HTTP Error 404 API request to my portainer #4437

Closed Answered by shamoon
Marcjaeger asked this question in Support
Discussion options

You must be logged in to vote

There is no requirement or expectation that you use ENV variables for any of this, but that is fine if you prefer to do it that way. I'd suggest, however, that you make sure it's working the most basic way first (e.g. copy and pasting the API key into the config example in your original post).

Perhaps the problem was that the config in your original post was missing the env: 2 line, which refers to the portainer environment, not anything to do with using ENV variables (.env) in docker.

Finally, note that changing environment variables (like HOMEPAGE_VAR_...) in docker requires re-creating (not just restarting) a container.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Marcjaeger
Comment options

Answer selected by Marcjaeger
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants