
I’ve successfully got my self hosted Appwrite functions linked and building from my GitHub. Everything is working smoothly but now I’m running into the issue of the generated function domains not getting through my Nginx proxy manager default page. I set a wildcard like *.example.com in https scheme to forward to my self hosted Appwrite instance with no ssl certificate as I’m assuming functions should handle that? Well for some reason I’m only getting the default page even with the wildcard.
Honestly I know this is mainly an issue on the proxy manager side I was just looking to see if anyone has dealt with this specifically in Appwrite functions context.

Don't you have an entry for Appwrite in NPM?

I do yes it’s just like example.com but I’m seeing that the functions it’s generating are sheishsykavs.example.com
Or am I overthinking this?

So...you have an entry, example.com. that's the same as your _APP_DOMAIN env var?

Is sheishsykavs.example.com a custom function domain?

That is correct. Just to note I didn’t touch the proxy and kept getting that default screen and figured I should try and setup a wildcard proxy so all the generated functions would get through. So I added that to my existing forward but I think my already existing ssl for example.com glitched something out and I got logged out of the admin panel when accessing the function url on my laptop and it wouldn’t let me log back in. But my phone still had a session up so that’s how I’ve been debugging this issue. And said subdomain was just an example it’s a bunch of numbers and letters

So that one Appwrite entry you have. You can just update the hosts in that entry to include *.example.com

Oh so it's an auto generated function domain via the app functions domain env var?

Yeah I just created a starter template in dart and tried running the url once it built. I keep getting a mix bag of insecure connections or default pages. Right now with the forward you suggested tying onto my original I get this on my phone accessing the url.

It also won’t let me login on my laptop anymore even though I’m 100% sure the credentials are right

“Invalid credentials. Please check your email and password”

I got some sort of 500 error in the dashboard when executing the link one time and then it’s locked me out since

Update: on my laptop the url is providing the Hello, World!

But I’m still unable to login

Did you change the openssl key?

Yes actually I changed it in my env earlier

That would affect everything that's encrypted

So does that brick everything?

It doesn't brick things...it's just everything that's encrypted will get messed up. For example, passwords...so you'll have to reset your password to get back in.
Another example is function/project variables. They'll be blank so you need to set them again

Hmm gotcha. What do you recommend if I never got to setting up smtp😂

Would changing it back work? I wouldn’t think so right

Ya, you can change it back

You can set it up now

All it working now thank you!
Recommended threads
- Forgot how to create functions which dep...
whenever I try to create a function using the starter template, I either get tar: short read, Build archive was not created, or the build succeeds but I dont s...
- Relationships
At the moment I don't need support on this as I have a work around for it. Problem : existing relationships can not be edited. Instance: self hosted Docker on ...
- unable to access the appwrite console
i havev a self hosted appwrite instance on a vps. appwrite seems to be working fine. all applications and websites are functional seems to ve getting data form ...
