#[Solved] Function subsubdomains, DNS PROBE
21 messages · Page 1 of 1 (latest)
i have only routed https://appwrite.bash.lv A record, should i be adding something else ?
Function subsubdomains, DNS PROBE
For wildcard function domains to work, you need 2 more records:
functions.appwrite.bash.lvand*.functions.appwrite.bash.lv. Both should have same configuration as yourappwrite.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"
do i have to change my env for that to work? _APP_DOMAIN_FUNCTIONS=appwrite.bash.lv
i dont remember now where i read that, but app_domain_functions was suggested to be the same as the main domain
that's why i ask
In your case it should be _APP_DOMAIN_FUNCTIONS=functions.appwrite.bash.lv
Also any domain already generated for your existing functions would have wrong domain, if your _APP_DOMAIN_FUNCTIONS was incorrect. You can go to domain settings of your function and delete those wrong domains. Then you can manually add domains you need. This is neat trick, it even allows you to do custom subdomains instead of random ones. For example you could do my-login-function.functions.appwrite.bash.lv.
(instead of random ones that are auto-generated like gzb83fru9newi.functions.appwrite.bash.lv)
let me give that a try
@limber whale it's alive, thank you very much!
will try to get the ssl working now
Warning: unknown mime-type for "appwrite" -- using "application/octet-stream"
Warning: unknown mime-type for "ssl" -- using "application/octet-stream"
Error: no "compose" mailcap rules found for type "application/octet-stream"
Error: no "compose" mailcap rules found for type "application/octet-stream"
Error: no "compose" mailcap rules found for type "application/octet-stream"```
that's for compose exec appwrite ssl --domain="id.functions.appwrite.bash.lv"
Hmm. Where did you run this command? Seems like Linux had some issue parsing it
in terminal
oh i found the problem, its docker-compose for me, not compose
ok got the ssl, awesome, will write it down in my notes so i would not forget
thank you @limber whale, will go back to your example now, and study how can i do query parameters and body extraction
[Solved] Function subsubdomains, DNS PROBE