bastienwirtz / homer

A very simple static homepage for your server.
https://homer-demo.netlify.app/
Apache License 2.0
9.1k stars 770 forks source link

Lighthttpd logs #616

Open nicolas-brousse opened 1 year ago

nicolas-brousse commented 1 year ago

Is your feature request related to a problem? Please describe. I'm currently trying to configure a docker swarm stack with Homer Dashboard behind a traefik proxy, but homer respond to me with 400 Bad Request. Lighthttpd doesn't show log so it's not easy to me to know what is the exact issue.

Describe the solution you'd like Update lighthttpd to log access and may be errors (if possible).

Describe alternatives you've considered

Additional context

Here the stack description I've tried to use

# homer.stack.yml

version: "3"
services:
  homer:
    image: b4bz/homer:v23.02.2
    volumes:
      - /mnt/glusterfs/homer_dashboard/assets:/www/assets
    user: 1000:1000 # default
    environment:
      - INIT_ASSETS=1 # default
    networks:
      - public
    deploy:
      mode: replicated
      replicas: 1
      labels:
        - "traefik.enable=true"
        - "traefik.http.routers.homer_dashboard.rule=Host(`homer_dashboard.swarm.home`)"
        - "traefik.http.routers.homer_dashboard.entrypoints=http"
        - "traefik.http.services.homer_dashboard.loadbalancer.server.port=8080"
raiyni commented 1 year ago

Would much appreciate this one. I moved homer to a new host and am getting 403 errors accessing the container.

dunny1g commented 1 year ago

Would also like to see this implemented. Just upgraded from a Pi 4 so from the arm image to the amd64 image and Uptime Kuma shows my dashboard's average response as 12s. Every other service I moved runs better, just can't understand why Homer isn't.

iambricegg commented 1 year ago

Hi! Is your container connected to Traefik reachable network ? Declare this network in the label section with the key

labels : 
    - "traefik.network=public"
nicolas-brousse commented 1 year ago

Hi @iambricegg

I did it in traefik cli option with --providers.docker.network=public.

I've reinstalled it this week and it works now with my config. But I don't really know if I changed something somewhere else or it come from changes in a recent release.