For wildcard function domains to work, you need 2 more records:
functions.appwrite.bash.lv and *.functions.appwrite.bash.lv. Both should have same configuration as your appwrite.bash.lv
If you need wildcard certificates to work, thats a bit more tricky as you would need to setup Traefik to do DNS challenge with your provider.
What I would recommend for self-hosted is to manually generate ssl certificate for your custom domains. This only needs to be done once for every domai, and it will keep renewing automatically. The command is docker compose exec appwrite ssl --domain="yourdomainhere.com"