Web Developer
Issue: Avatar URLs are using server IP address instead of configured domain
Environment:
Appwrite Version: 1.8.0
Setup: Self-hosted on Google Compute Engine with Cloudflare Tunnel
Domain:
Frontend: Firebase Hosting at
Problem:
The avatars.getInitials() endpoint is generating URLs with the server's IP address instead of the configured domain:
Current (wrong): http:///v1/avatars/initials?name=User&project=
Expected: https:///v1/avatars/initials?name=User&project=
This causes:
ERR_CERT_AUTHORITY_INVALID errors (IP has no SSL cert)
Mixed content warnings (HTTP images on HTTPS page)
Blocked image requests
Configuration:
All environment variables are correctly set in both .env and docker-compose.yml:
bash_APP_DOMAIN=
_APP_DOMAIN_TARGET=
_APP_DOMAIN_FUNCTIONS=
_APP_ENDPOINT=https:///v1
Verified:
bashdocker exec -it appwrite printenv | grep APP_DOMAIN
Shows all domain variables are correct
Steps Taken:
Restarted Appwrite multiple times
Cleared browser cache
Added platform for frontend domain in Appwrite console
Verified Cloudflare Tunnel is working correctly (other API endpoints work fine)
Question: Why is the avatar service still generating URLs with the IP address? Is there a cached value in the database or a specific configuration for the avatar service we're missing?