https://deepwiki.com/quochuydev/zitadel-login-ui
- Clone
.env.examplefile as.env - Update ZITADEL url to env
ZITADEL_URL - Create service user:
- Update service user role
IAM_OWNERinhttps://ZITADEL_URL/ui/console/instance/members - Get
userIdand update to envZITADEL_SERVICE_USER_ID
Run the app
yarn devUseful command to add a trust domain in self host server
# Add a trusted domain
docker ps
docker exec -it zitadel_postgres_container_id psql -U postgres -c "\l"
docker exec -it zitadel_postgres_container_id psql -U postgres -d zitadel -c "SELECT * FROM projections.instance_trusted_domains;"
docker exec -it zitadel_postgres_container_id psql -U postgres -d zitadel -c "INSERT INTO projections.instance_trusted_domains (instance_id, creation_date, change_date, sequence, domain) VALUES ('instance_ids', NOW(), NOW(), 1, 'zitadel-login-ui-v2.vercel.app');"
# Verify trusted domain
curl https://system-v1-fpms4l.zitadel.cloud/.well-known/openid-configuration \
-H 'x-zitadel-public-host: zitadel-login-ui-v2.vercel.app'
curl https://zitadel-login-ui-v2.vercel.app/.well-known/openid-configuration

