Hi, I created a docker deployment image for deploying strapi into k8s. Once up and running if I click to register a new admin I get an infinite redirect loop.
/project-type endpoints keep responding with 401 although if called directly data are returned (200)
Screenshot and details at Infinite redirect loop - first admin
This topic has been created from a Discord post (1239835148623806526) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord
You likely messed up config/server or config/admin
On that screenshot your are trying to hit admin route but header Bearer token is null
I noticed that. But I have no idea why
There is default one like api/login
But I doubt it would work since you need you would be redirected automatically
I guess you have some troubles in nginx or in the strapi config
Is your url
defined correctly?
Create your first administrator
by going to the administration panel at: │
│ │
│ ┌────────────────────────────────┐ │
│ │ https://cms.MY-DOMAIN.com/admin │ │
│ └────────────────────────────────┘ │
│ │
│ [2024-05-13 16:17:53.032] http: GET /admin (46 ms) 200
if it doesn’t work after you need to check nginxs`s up to
it’s set directly to public domain. https://cms.everifin.com/ is the landing page.
my-domain = everifin during boot
i guess there might be cors but more likely nginx conf…
I fixed the issue with cloudflare - (I think that’s unrelated, only cloudflare tries to inject there some tracking JS) but the issue still persist.
Maybe try posting your main nginx conf
And check the cors
section of docs