deleted user
deleted user2mo ago

User not found?

Hey, I hosted zitadel with docker compose, everything worked well. I used this config, https://docs-git-simplify-compose-example-zitadel.vercel.app/docs/self-hosting/deploy/compose/ I added ExternalDomain so i could use my LAN address instead of localhost, it worked. In loginname, i entered zitadel-admin@lan addr as per the docs, but it say "User not found" What do I do?
49 Replies
R7FX
R7FX2mo ago
I'm not the expert here whatsoever, but maybe try zitadel-admin@zitadel.(lan-addr) instead?
deleted user
deleted userOP2mo ago
fuck I FORGOT TO ADD zitadel.lanaddr Broo, ty so much! Sorry for swearing
R7FX
R7FX2mo ago
You're welcome! Nah that's fine lol Do you got it working to the dashboard tho? Cause mine says that it could not verify the password when I try to login
deleted user
deleted userOP2mo ago
let me check hey since i dont have my old laptop (what i use for hosting) i'll try localhost running on mac do u host it locally or i got it to run
R7FX
R7FX2mo ago
I host it on a local server (docker inside proxmox lxc) Hmm maybe I need to tinker a little bit more
deleted user
deleted userOP2mo ago
it worked perfectly for me! whats your setup i found out if you dont apply TLS for zitadel it use http/1.1
R7FX
R7FX2mo ago
Nice !! Ah maybe that's it? I haven't use tls yet
deleted user
deleted userOP2mo ago
yes
R7FX
R7FX2mo ago
I'll try again later
deleted user
deleted userOP2mo ago
in theory CF tunnel should work
R7FX
R7FX2mo ago
Thanks for the information
deleted user
deleted userOP2mo ago
if its not running with TLS
R7FX
R7FX2mo ago
I have zoraxy set up for tls on my lan, i'll try with that first
deleted user
deleted userOP2mo ago
let me know if u got it to work
deleted user
deleted userOP2mo ago
Ixion's blog
Setting up a self-hosted ZITADEL OAuth service on Ubuntu 22.04 with...
A walk-through guide for setting up ZITADEL, a self-hosted IAM solution written in Go, and integrating it with Tailscale.
deleted user
deleted userOP2mo ago
apparently this guy managed to get it to work behind CF tunnels? if CF tunnels work why isnt it in the docs?
R7FX
R7FX5w ago
Dunno either, the docs is often kinda confusing
deleted user
deleted userOP5w ago
yes Clearly it’s supported..? anybody know why?
Larzous
Larzous5w ago
I don’t know if he’s talking about normal cloudflare proxy or cloudflare zero trust. I personally do this exact setup but use caddy
deleted user
deleted userOP5w ago
tunnel or? he used cf tunnel
Larzous
Larzous5w ago
Cloudflare proxy -> caddy config yo reverse proxy to Zitadel at localhost. I mean, let’s zero trus(vpn) in, to then have OAuth? I mean sure, it’s just ports, but we are building a public auth Article looks a bit old, cloudflare rebranded tunnels over to zero trust last year.
deleted user
deleted userOP5w ago
tried this didnt work at all nginx too
Larzous
Larzous5w ago
You’re just trying to get it running right?
deleted user
deleted userOP5w ago
yes after that. i'll make it production ready
Larzous
Larzous5w ago
Oh god, you can’t run nginx and caddy… WHY?!?
deleted user
deleted userOP5w ago
no caddy DIDNT work so i tried nginx which DIDNT work
Larzous
Larzous5w ago
Your dns over cloudflare?
deleted user
deleted userOP5w ago
what
Larzous
Larzous5w ago
Is your URL proxied through cloudflare?
deleted user
deleted userOP5w ago
yes
Larzous
Larzous5w ago
What was your Caddyfile?
deleted user
deleted userOP5w ago
i used Caddyfile from docs but changed url to my domain external TLS one i also enabled gRPC , http/2 on cloudflare u got any idea? you use zitadel with cf tunnel?
Larzous
Larzous5w ago
No, just cloudflare dns in proxy mode direct to Caddy. But you need a plug-in
deleted user
deleted userOP5w ago
your setup wont work for me because i am behind CGNAt so that why i use CF tunnels
Larzous
Larzous5w ago
Cgnat?
deleted user
deleted userOP5w ago
ye
Larzous
Larzous5w ago
What’s that? You have a cloudflare edge certificate?
deleted user
deleted userOP5w ago
uh let just say i cant port forward yes
Larzous
Larzous5w ago
Give me a few to get on my pc
deleted user
deleted userOP5w ago
Alr If you got it, please tell me
Larzous
Larzous5w ago
To build without Cloudflare Tunnels I use this: config here: https://discord.com/channels/927474939156643850/1402640191872827564/1402976338343891125 I build caddy using xcaddy so I can reverse translate the cloudflare IP to user IPs so they are properly sent to reverse proxy as the user. xcaddy build --with github.com/WeidiDeng/caddy-cloudflare-ip Based on the doucment itself -- the Cloudflare tunnel doesn't need caddy or nginx at all since it can bind directly to zitadel. I was trying ... had to find and type stuff 🙂
deleted user
deleted userOP5w ago
Yes cloudflare tunnel can bind with zitadel But the problem is How? Where’s the doc?
Larzous
Larzous5w ago
is cloudflare tunel looking for something on a specific port?
deleted user
deleted userOP5w ago
I could use that guy doc But I need compose version No Same port as zitadel Http/2 needs HTTPS on origin So I used external TLS So that’s why nginx / caddy If you run zitadel without TLS, it use http1.1 I did this And cloudflare tunnel worked But the login oage however didn’t It was just black page
Larzous
Larzous5w ago
ohh ... I see -- its wrong The PORT is the port it runs on as the server -- the externalport is the one the browser connects to.
No description
No description
deleted user
deleted userOP5w ago
Also
Larzous
Larzous5w ago
No description
deleted user
deleted userOP5w ago
I did not use the docs I used it to show that CF tunnel works I need one for docker compose What do u suggest I do Do you have any idea?
Larzous
Larzous5w ago
I thought I gave you everything I could? -- I'm not sure your exact setup since you haven't shared anything so I can't really be much more helpful without more information.

Did you find this page helpful?