Skip to content

Commit 4d44f68

Browse files
committed
docs(docker): fix ALLOWED_HOSTNAMES format in troubleshooting example
1 parent 70c3c23 commit 4d44f68

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

apps/docs/content/docker.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ For more detailed instructions on how to build and configure your own Docker ima
108108

109109
### CLIENT_FETCH_ERROR
110110

111-
If you experience this error, it may be because the Auth callback in the server is using the web app URL as a base URL. The container does not necessarily have access to the same DNS as your local machine and may need to loop back to itself. You may be able to correct this by configuring `NEXTAUTH_URL=http://localhost:3000/api/auth` for internal callback requests while keeping `NEXT_PUBLIC_WEBAPP_URL` set to your public domain.
111+
If you experience this error, it may be because the Auth callback in the server is using the web app URL as a base URL. The container does not necessarily have access to the same DNS as your local machine and may need to loop back to itself. You may be able to correct this by configuring `NEXTAUTH_URL=http://localhost:3000/api/auth` for internal callback requests while keeping `NEXT_PUBLIC_WEBAPP_URL` set to your full public URL, including the scheme, such as `https://cal.example.com`.
112112

113113
```
114114
docker-calcom-1 | @calcom/web:start: [next-auth][error][CLIENT_FETCH_ERROR]
@@ -119,14 +119,14 @@ docker-calcom-1 | @calcom/web:start: https://next-auth.js.org/errors#client_fet
119119

120120
If OAuth loops and logs show messages like `Match of WEBAPP_URL with ALLOWED_HOSTNAMES failed`, verify all of the following:
121121

122-
1. `ALLOWED_HOSTNAMES` is comma-separated without JSON or extra quotes (for example, `ALLOWED_HOSTNAMES=cal.example.com,www.cal.example.com`).
123-
2. `NEXT_PUBLIC_WEBAPP_URL` is set to your public domain.
124-
3. Your image was built with the same public domain values.
122+
1. `ALLOWED_HOSTNAMES` is set as a comma-separated list of quoted hostnames (for example, `ALLOWED_HOSTNAMES='"cal.example.com","www.cal.example.com"'`).
123+
2. `NEXT_PUBLIC_WEBAPP_URL` is set to your full public URL, including `http://` or `https://`.
124+
3. Your image was built with the same public URL values.
125125

126126
Quick check:
127127

128128
```bash
129129
docker compose exec calcom printenv BUILT_NEXT_PUBLIC_WEBAPP_URL
130130
```
131131

132-
If this value does not match your public domain, rebuild your image with the correct build-time args and restart the stack.
132+
If this value does not match your full public URL, rebuild your image with the correct build-time args and restart the stack.

0 commit comments

Comments
 (0)