#[Closed] Self host appwrite

141 messages · Page 1 of 1 (latest)

elfin timber
#

Do you have set a domain to your appwrite instance?

smoky dome
#

_APP_DOMAIN right

#

I have set

elfin timber
#

Are you using a reverse proxy or similar?

smoky dome
#

I have public ip , then forward to the appwrite local.

#

the domain is pointed to public ip.

#

port 80 and 443 are pointed to IIS server.

#

I use 8888 for appwrite.

#

I have ssl pointed to subdomain, it's registerd in iis. I also try to do reverse proxy from iis to appwrite, but it does not work

plush meteor
#

Something is wrong with your domain. It's not pointing to your Appwrite. When I browse to it, I get a 404

plush meteor
smoky dome
plush meteor
smoky dome
smoky dome
#

right. I follow the setup reverse proxy iis docs, it should be straigforward, but it doesnot work

smoky dome
# plush meteor What's the problem?

so I setup when the connection by the subdomain, it goes to my local server public ip (which already domain pointed in namecheap). it should go to iis server. then iis should reverse proxy it to appwrite.

#

but as you see, i already setup but when we access domain, it shows 404

#

which means it doesnot reverse to the appwrite yet.

#

by exposing port 8888.it directly goes to appwrite server directly.

#

the reason is iis occupied port 80 and 443. so it must go through iis

plush meteor
plush meteor
smoky dome
#

I setup frist binding subdomian to my local iis ip and port 80

#

then I setup url rewrite to appwrite instance server with port 8888

plush meteor
# smoky dome

Is Appwrite on the same server? And that's the local IP of the server?

smoky dome
#

iis is .2

plush meteor
plush meteor
plush meteor
#

And can you confirm you're using Application Request Routing?

smoky dome
smoky dome
plush meteor
#

Are you sure you don't have anything else? And the domain points to iis? I don't understand how it's being routed currently if you browse to https://domain:8888

plush meteor
#

I'm pretty sure you need http on port 80 as well as https on port 443

#

So do you see this when you open the http port 80 in the above screenshot?

plush meteor
#

how is this tied to the site bindings you have?

smoky dome
plush meteor
#

sorry i don't know how inbound rules work in IIS. Do all of them run?

smoky dome
#

I have just folloing the docs.

plush meteor
#

Is this inbound rule tied to a site?

smoky dome
#

😂

#

it should work as it works for other things

#

so the basic setup is same

smoky dome
#

now when i access.

plush meteor
smoky dome
#

the domain

plush meteor
smoky dome
#

🤔

plush meteor
#

anyways...i dunno how to configure IIS..but it should be possible. and that would be the right way to do it

smoky dome
#

right, it should be easy as I beleive and the doc says.

smoky dome
#

@plush meteor i have it working but

#

When i sign in or add new web app

elfin timber
# smoky dome

In the overview tab, there's a section called platforms. You can add it there

smoky dome
#

when I try to add this message pop up

elfin timber
smoky dome
#

Actually i added as custom domain

#

I need another domain as web project

#

But when i try to add

#

To sign in

#

To add web pro

#

This always pop up

#

It likes any change in console will pop this up amd prevent me to perform

#

Anything related to reverse proxy?

elfin timber
#

Do you get any other error?

elfin timber
#

If it's the app domain you should add it only in the platform section

smoky dome
#

i already add it as appwrite instance domain

#

so I need to add another domain in web project to allow cors

#

the problem is when I change anything it shows 403

elfin timber
#

So you can't change anything?

smoky dome
#

no i cant

#
[Error] Method: DELETE
[Error] URL: /v1/proxy/rules/:ruleId
[Error] Type: Appwrite\Extend\Exception
[Error] Message: Invalid Origin. Register your new client (appwrite.mlopdata.com) as a new Web platform on your project console dashboard```
#

in the appwrite log

elfin timber
#

Do you have added the domain including subdomain in the correspoinding environment variable?

smoky dome
#

where ?

#

_App_Domain?

#

right?

#

if i access locally, work fine.

#

most likely origin blocked

elfin timber
#

Yes

smoky dome
#

How to fix it

elfin timber
smoky dome
#

I added but same issue

elfin timber
#

Did you have run the command to update?

#

Also, you're getting the error in the console?

smoky dome
#

what command

mental drift
smoky dome
#

yes i did

#

@elfin timber

#

still the same

elfin timber
smoky dome
elfin timber
#

localhost

smoky dome
#

yet, still not working

elfin timber
#

What's the error you're getting and where?

smoky dome
#

this from docker appwrite log

#

from chrome console

elfin timber
#

But where?

#

And how?

smoky dome
#

what do you mean where and how ?

#

i believe it should be to allow somewhere in selft hosting appwrite.

#

_App_Domain I already did

#

dont know what is giong wrong

smoky dome
#

@elfin timber do you think of any

plush meteor
smoky dome
plush meteor
smoky dome
#

and put the domain name if it is sovled

#

but not

plush meteor
# smoky dome but not

What's the domain environment variables when you run docker compose exec appwrite vars?

#

Can you share exactly please?

#

Ty

#

I'm deleted the screenshot because it has the openssl key in it

smoky dome
#

Okay thank you

#

Is env correct ? Right

plush meteor
#

Ok so you need to make sure IIS forwards the host header

smoky dome
smoky dome
#

[Closed] Self host appwrite