ZITADELZZITADEL
Powered by
xmmkX
ZITADEL•5mo ago•
4 replies
xmmk

[Self-Hosted] What is the recommended way to run ZITADEL for local development of web and mobile app

I’m struggling to run a local ZITADEL instance that works for the iOS simulator, the Android emulator, and all browsers on the web — so that I can develop my cross-platform Flutter app against it.

Right now, this mainly fails because of the fixed ZITADEL_EXTERNALDOMAIN and the fixed base URIs. For local development, it shouldn’t really matter which domain I use to access the service. At the moment, the only option I see is using something like ngrok, but even then the domain changes from time to time.
I also haven’t figured out how to change the LOGINV2_BASEURI in Docker Compose (or without the admin UI) if the domain changes, to be able to login again.

Since I’ve never seen this limitation in other systems, and my use case isn’t exactly an edge case, I’m wondering if I’m missing some configuration options.

Here are my current findings:
• localhost doesn’t work for iOS or Safari, because Login V2 requires HTTPS. A proxy using 127.0.0.1.sslip.io works.
• 127.0.0.1.sslip.io doesn’t work in the Android emulator, since it uses 10.0.2.2 as the host machine. Using 10.0.2.2.sslip.io as issuer doesn’t work either, because ZITADEL is configured for 127.0.0.1.sslip.io.
• On real mobile test devices, 127.0.0.1.sslip.io also doesn’t work.
ZITADEL banner
ZITADELJoin
ZITADEL - Identity infrastructure, simplified for you.
4,374Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Self hosted Zitadel
Abhishek BhatAAbhishek Bhat / questions-help-bugs
5mo ago
Import users API for self-hosted ZITADEL
andreyAandrey / questions-help-bugs
15mo ago
Self-hosted ZITADEL scalability question (Cloud Run + Cloud SQL)
ZZZ / questions-help-bugs
6d ago