Skip to content

Commit 4002be9

Browse files
authored
Update README with commands for trusted domains
Added useful commands for managing trusted domains in self-hosted servers.
1 parent 1a9fdfa commit 4002be9

1 file changed

Lines changed: 23 additions & 1 deletion

File tree

readme.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,28 @@ yarn dev
2323

2424
![Create service user token](./docs/service-user-token.png)
2525

26-
**Example**
26+
### Commands
27+
28+
_Useful command to add a trust domain in self host server_
29+
30+
```
31+
# Add a trusted domain
32+
docker ps
33+
34+
docker exec -it zitadel_postgres_container_id psql -U postgres -c "\l"
35+
36+
docker exec -it zitadel_postgres_container_id psql -U postgres -d zitadel -c "SELECT * FROM projections.instance_trusted_domains;"
37+
38+
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');"
39+
40+
# Verify trusted domain
41+
curl https://system-v1-fpms4l.zitadel.cloud/.well-known/openid-configuration \
42+
-H 'x-zitadel-public-host: zitadel-login-ui-v2.vercel.app'
43+
44+
curl https://zitadel-login-ui-v2.vercel.app/.well-known/openid-configuration
45+
```
46+
47+
### Demo
2748

2849
https://zitadel-login-ui-v2.vercel.app
50+

0 commit comments

Comments
 (0)