Rank 4: Virtual Machine
I have an appwrite session behind apache proxy at appwrite.suven.com.np. The environment variables _APP_DOMAIN and _APP_DOMAIN_TARGET are set to appwrite.suven.com.np. The DNS has an A record pointing to the IP of the server. Using login from another page hosted at project.suven.com.np works but logs Appwrite is using localStorage for session management. Increase your security by adding a custom domain as your API endpoint. to the console. Trying to add custom domain for appwrite.suven.com.np from the project settings returns 500 errors. The logs from docker is:
appwrite | [Error] Method: POSTappwrite | [Error] URL: /v1/projects/:projectId/domainsappwrite | [Error] Type: Appwrite\Extend\Exceptionappwrite | [Error] Message: Unreachable CNAME target (appwrite.suven.com.np), please use a domain with a public suffix.appwrite | [Error] File: /usr/src/code/app/controllers/api/projects.phpappwrite | [Error] Line: 1344The documentation for adding custom domains mentions adding a CNAME record. What does that mean? For which URL should the CNAME record be set and what should it point to?