#[Solved] Function subsubdomains, DNS PROBE

21 messages · Page 1 of 1 (latest)

somber garnet
#

I want to ask if the subsubdomains in functions do need to be added to dns, as i have 404 on each of the subsubdomains e.g. the automaticly generated subdomain http://65c5452eef6e40ec629c.appwrite.bash.lv/ would return DNS_PROBE_FINISHED_NXDOMAIN for me.

#

Function subsubdomains, DNS PROBE

limber whale
#

For wildcard function domains to work, you need 2 more records:

  1. 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"

somber garnet
#

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

limber whale
#

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)

somber garnet
#

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"```
limber whale
#

Hmm. Where did you run this command? Seems like Linux had some issue parsing it

somber garnet
#

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

somber garnet
#

[Solved] Function subsubdomains, DNS PROBE