(This was built using the Linode marketplace instance automatically) I'm not going to use my actual domains for this, but I have the Appwrite panel set up at backend.example.xyz
, which is the value for both the _APP_ENV
and _APP_DOMAIN_TARGET
environment variables, but when I try setting a custom domain for a web app to something like api.anotherdomain.me
, I get an internal server error popup
What do the docker logs for the appwrite container say?
appwrite | [Error] Timestamp: 2023-07-08T16:53:39+00:00
appwrite | [Error] Method: POST
appwrite | [Error] URL: /v1/projects/:projectId/domains
appwrite | [Error] Type: Appwrite\Extend\Exception
appwrite | [Error] Message: Unreachable CNAME target (localhost), please use a domain with a public suffix.
appwrite | [Error] File: /usr/src/code/app/controllers/api/projects.php
appwrite | [Error] Line: 1344
appwrite | [Error] Timestamp: 2023-07-08T16:55:44+00:00
appwrite | [Error] Method: POST
appwrite | [Error] URL: /v1/projects/:projectId/domains
appwrite | [Error] Type: Appwrite\Extend\Exception
appwrite | [Error] Message: Unreachable CNAME target (localhost), please use a domain with a public suffix.
appwrite | [Error] File: /usr/src/code/app/controllers/api/projects.php
appwrite | [Error] Line: 1344
oops that was it twice
Did you apply the changes to your .env file by recreating the containers?
wait does rebooting the linode not do that?
Not necessarily
ah i see lol
does docker compose up -d
recreate the containers? sorry i'm not super familiar with docker
it worked lol thank you!! i should've thought of that before D:
[solved] Internal server error when setting custom domain
Recommended threads
- Invalid document structure: missing requ...
I just pick up my code that's working a week ago, and now I got this error: ``` code: 400, type: 'document_invalid_structure', response: { message: 'Inv...
- Custom Domains
Hi All, Should be a quick config issue. I'm setting up custom domains on the hosted version. I have verified the domain with the CNAME but appwrite isn't gene...
- custom domain with CloudFlare
Hi all, it seems that CloudFlare has blocked cross-domain CNAME link which made my app hostname which is in CloudFlare, unable to create a CNAME pointing to clo...