Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server gave HTTP response to HTTPS client #314

Open
barcollin opened this issue Mar 13, 2024 · 1 comment
Open

Server gave HTTP response to HTTPS client #314

barcollin opened this issue Mar 13, 2024 · 1 comment
Labels

Comments

@barcollin
Copy link

barcollin commented Mar 13, 2024

I have tried to run the same code as this example and I am running zitadel locally. And I get this error when I run the code provided here : https://github.com/zitadel/zitadel-go/blob/main/example/http/http.go

go run main.go -key=./key.json -domain=localhost:8080 

2024/03/13 16:01:35 ERROR zitadel sdk could not initialize error="Get \"https://localhost:8080/.well-known/openid-configuration\": http: server gave HTTP response to HTTPS client"
exit status 1

Is there a way to run zitadel with https connection locally?

@adlerhurst
Copy link
Member

We provide some self hosting examples which allow to use zitadel using https. For example here: https://zitadel.com/docs/self-hosting/manage/reverseproxy/nginx#tls-mode-external

I need to check if you can overwrite the domain so that you can use http as well which might be the easiest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 🧐 Investigating
Development

No branches or pull requests

3 participants