Back

Functions with Nginx Proxy Manager

  • 0
  • Self Hosted
  • Functions
AquaNaga
12 Dec, 2023, 04:11

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.

TL;DR
User is having trouble getting their self-hosted Appwrite functions to work with Nginx Proxy Manager. They changed the openssl key and are now unable to log in. They also tried setting up a wildcard proxy, but it didn't work. User is seeking advice or solutions to fix the issue.
Drake
12 Dec, 2023, 04:14

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

AquaNaga
12 Dec, 2023, 04:15

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?

Drake
12 Dec, 2023, 04:17

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

Drake
12 Dec, 2023, 04:17

Is sheishsykavs.example.com a custom function domain?

AquaNaga
12 Dec, 2023, 04:21

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

Drake
12 Dec, 2023, 04:23

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

Drake
12 Dec, 2023, 04:24

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

AquaNaga
12 Dec, 2023, 04:27

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.

AquaNaga
12 Dec, 2023, 04:28

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

AquaNaga
12 Dec, 2023, 04:28

“Invalid credentials. Please check your email and password”

AquaNaga
12 Dec, 2023, 04:29

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

AquaNaga
12 Dec, 2023, 04:32

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

AquaNaga
12 Dec, 2023, 04:32

But I’m still unable to login

Drake
12 Dec, 2023, 04:33

Did you change the openssl key?

AquaNaga
12 Dec, 2023, 04:33

Yes actually I changed it in my env earlier

Drake
12 Dec, 2023, 04:33

That would affect everything that's encrypted

AquaNaga
12 Dec, 2023, 04:34

So does that brick everything?

Drake
12 Dec, 2023, 04:35

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

AquaNaga
12 Dec, 2023, 04:37

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

AquaNaga
12 Dec, 2023, 04:37

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

Drake
12 Dec, 2023, 04:37

Ya, you can change it back

Drake
12 Dec, 2023, 04:38

You can set it up now

AquaNaga
12 Dec, 2023, 04:57

All it working now thank you!

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more