xemle / home-gallery

Self-hosted open-source web gallery to view your photos and videos featuring mobile-friendly, tagging and AI powered image discovery
https://home-gallery.org
MIT License
836 stars 64 forks source link

Set password and now can't get past password window #147

Open TheBig-O opened 3 months ago

TheBig-O commented 3 months ago

The basic authentication seems sporadic. I set a password in the config files based on the instructions shown in the file. Once I restart the container, the password works for a few minutes but reverts to asking for the password. No matter how many times I put in the password, it keeps asking. Also, it seems to be any time I filter to a specfic tag. Is this like a configuration error or is it a glitch in the authenticaiton? I'm using Docker and have the app proxied through NGINX Proxy Manager. Everything works great if I take out the password. Thanks for the help.

This is my authentication portion of the config:

auth:
    public:
      filter: 'tag:Erbil not tag:private not tag:Allentown' # Database filter for non authenticated users and non whitelisted IPs
    users:
      - username: 'TheBigO'
        password: 'SuperSecretHashedPassword' # password
        filter: '' # no database filter for admin user      
xemle commented 3 months ago

Hi @TheBig-O

Thank you for reporting the issue. It is quite hard to identify the issue from remote. My best guess is that the authorization header is not send by the browser. You can check the network request of your browser to verify that or check the logs of the gallery.

If that does not provide some insides please post your gallery logs here