Bug: Page never loads behind traefik
What happened?
Hello,
in V3, with traefik labels, the login page never loads. Ib V4 it works as expected.
Version
latest (ghcr.io/diced/zipline or ghcr.io/diced/zipline:latest)
What browser(s) are you seeing the problem on?
No response
Zipline Logs
2024-08-31 11:28:29,402 AM info [server::response] GET /api/user -> 401
Browser Logs
No response
Additional Info
labels:
traefik.enable: true
traefik.http.routers.zipline.entryPoints: https
traefik.http.routers.zipline.rule: Host(`zipline.mydomain.org`)
traefik.http.routers.zipline.middlewares: crowdsec@file, error-pages-middleware
```
I noticed that manually navigating to /auth/login works. But direct URL which goes to /dashboard stays in loading state.
I'm not familiar with traefik, but does it do anything that blocks redirects? When you are not logged in, the /dashboard will redirect you do /auth/login.
And since you said manually navigating to /auth/login worked, does signing in work after that?
Yes, signing in works. I am using error-pages with traefik which I saw could block redirects, but I disabled it and it has the same issue. All good with V4 tho.
I'm having semi the same issue using Traefik v3. But I saw the list of supported OAuth services, so I'm not sure what should be set to allow Traefik instead.
Traefik is a reverse proxy not an OAuth provider. Normally it shouldn’t matter what kind of reverse proxy one uses.
I also have the same error with bunkerweb (nginx) as a reverse proxy. Everything works as expected but the call of /api/user always fails with an 401 error. Is there a solution?
intended behavior... you need to login?
But the login page does not appear when I call up https://zipline.domain.example/ or https://zipline.domain.example/dashboard . Only when I call up the login url (https://zipline.domain.example/auth/login) directly can I log in.
no idea what the problem is, but after a quick google search it seems that traefik has some problems with js rewrites: i suggest taking a look at these docs: https://doc.traefik.io/traefik/middlewares/http/redirectregex/ (https://doc.traefik.io/traefik/v1.5/configuration/entrypoints/#rewriting-url older version) and trying their configurations, unfortunately i'm unable to test these. closing since this is not a zipline issue but rather a configuration step of traefik.