gethomepage 1.0 release and new security parameter introduced

gethomepage.dev: https://gethomepage.dev/assets/homepage_demo_clip.webp
homepage (GitHub) - the dashboard I use to keep an overview of all the services I run in my LAN released their 1.0 version yesterday on March 14th 2025.
With that they introduced a new parameter to limit which hosts can show the dashboard. I haven't yet read about why this was introduced, but it's fixed quickly.
As Watchtower does all the maintenance work for the containers running on my installation of Portainer I was already greeted with the following error message:
In the logfile for the container running homepage I saw the following error:
[2025-03-15T16:54:13.497Z] error: Host validation failed for: portainer.lan:3000. Hint: Set the HOMEPAGE_ALLOWED_HOSTS environment variable to allow requests from this host / port.
As I don't use a separate IP or hostname for the dashboard and just forward the port 3000/tcp towards the homepage-container I access it using the hostname of my Portainer host. Therefore this message makes sense.
Luckily the documentation for the newly required environment variable is already on their homepage: https://gethomepage.dev/installation/#homepage_allowed_hosts
Armed with this knowledge we can change the stack file (Portainers term for a docker-compose file - not to be confused with the docker swarm command docker stack
) and introduce the HOMEPAGE_ALLOWED_HOSTS
parameter. I added the IP-address too, in case the DNS servers in my LAN should stop working.
services:
homepage:
image: ghcr.io/gethomepage/homepage:latest
container_name: homepage
ports:
- 3000:3000
environment:
HOMEPAGE_ALLOWED_HOSTS: 192.168.178.21:3000,portainer.lan:3000
volumes:
- /opt/docker/homepage.dev/config:/app/config # Make sure your local config directory exists
- /var/run/docker.sock:/var/run/docker.sock # (optional) For docker integrations
- /opt/docker/homepage.dev/icons:/app/public/icons # icons, reference as /icons/picture.png in YAML
After that just hit the "Update the stack" button and it's working again.