openstad / openstad-kubernetes

The Kubenernetes YAML files and the Helm chart for automated full stack deployment
https://www.open-stad.amsterdam/projecten/#
MIT License
4 stars 7 forks source link

Domain is not set correctly when using no subdomain in values.yaml #70

Open rikdewit opened 2 years ago

rikdewit commented 2 years ago

I'm trying to setup openstad, however I get a redirect domain not allowed error when logging in. I found out this is because in api database under sites: allowedDomains, there should also be an entry including the www-prefix.

I get the same error when accessing the admin panel. It throws cors-errors because it wants to link to the domain including www, but the current domain name is set without it.

Is this because there is a configuration issue when not using a subdomain? Looking at /templates/frontend/deployment.yaml.

https://github.com/Amsterdam/openstad-kubernetes/blob/4af42c0107657765ee1bc10ef27b36fc49bcc353/k8s/openstad/templates/frontend/deployment.yaml#L32

I'm noticing the www-prefix is hardcoded so it would be obvious the reference in the admin panel is always using it. However removing this and installing again didn't fix the issue.