zipline icon indicating copy to clipboard operation
zipline copied to clipboard

Bug: Page never loads behind traefik

Open sahara101 opened this issue 1 year ago • 5 comments

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
     ```

sahara101 avatar Aug 31 '24 11:08 sahara101

I noticed that manually navigating to /auth/login works. But direct URL which goes to /dashboard stays in loading state.

sahara101 avatar Aug 31 '24 11:08 sahara101

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?

diced avatar Aug 31 '24 18:08 diced

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.

sahara101 avatar Aug 31 '24 19:08 sahara101

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.

Aetherinox avatar Sep 02 '24 05:09 Aetherinox

Traefik is a reverse proxy not an OAuth provider. Normally it shouldn’t matter what kind of reverse proxy one uses.

sahara101 avatar Sep 03 '24 03:09 sahara101

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?

cositech avatar Jan 03 '25 10:01 cositech

intended behavior... you need to login?

diced avatar Jan 04 '25 00:01 diced

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.

cositech avatar Jan 11 '25 22:01 cositech

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.

diced avatar Feb 14 '25 06:02 diced