Skip to content

No basic auth for web frontend? #416

@rucksman

Description

@rucksman

I am new to Gotify and try to set it up in a docker container behind a reverse proxy (combination of https://hub.docker.com/r/jwilder/nginx-proxy and https://hub.docker.com/r/jrcs/letsencrypt-nginx-proxy-companion). I want to protect the web frontend with basic auth.

The Gotify container comes up fine, the proxy asks for username and password as expected. After entering both I am greeted by the Gotify login screen. When using Web Dev tools in the browser, I can already see the first problem:
GET https://gotify.mydomain.com/manifest.json 401

More obvious problems occur after entering gotify credentials: I cannot log in because the basic auth window is constantly asking for username and password, and no matter how often I enter username and password, the basic auth windows does not go away.

What am I missing here?

Looking into the proxy logs I can see this:
user "admin" was not found in "/etc/nginx/htpasswd/gotify.mydomain.com"

"admin" is of course the username of the gotify user and not the username for basic auth. So why are both usernames mixed up?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions