#[Closed] Self host appwrite
141 messages · Page 1 of 1 (latest)
Are you using a reverse proxy or similar?
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
Something is wrong with your domain. It's not pointing to your Appwrite. When I browse to it, I get a 404
if you add port 8888, it willl
It must be exposed on standard ports for the certificate to generate
can you give some idea, as port 80 and 443 occupided by iis. normally, I host in iis with some domain
Uhh if your problem is you have multiple apps running on a certain server, the solution is to use a reverse proxy
I setup reverse proxy from iis to local appwrite server. but it seems iis can't reverse to appwrit
That sounds odd
right. I follow the setup reverse proxy iis docs, it should be straigforward, but it doesnot work
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
Yes... That's how reverse proxies work
So what did you do in iis to reverse proxy to Appwrite?
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
my rewrite url: http://192.168.1.8:8888/{R:0}
Is Appwrite on the same server? And that's the local IP of the server?
no they are different local server
iis is .2
That's weird that http://domain:8888 would work if domain is pointing to iis 🧐
What's the https port for Appwrite. You should reverse proxy both
i use anotehr 4444
Can you share a screenshot of iis for what you did?
And can you confirm you're using Application Request Routing?
will screenshot
🤔 wait i could not see
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
I dont have any other setup
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?
will try
i create rule manually
how is this tied to the site bindings you have?
what do you mean right here?
sorry i don't know how inbound rules work in IIS. Do all of them run?
me neither. if it runs correctly it should work.
I have just folloing the docs.
lol...sounds like you need someone who knows IIS more
Is this inbound rule tied to a site?
generally, it should just forward the request from outside to local appwrite server
now when i access.
access what?
the domain
which? I see 500 for appwrite.mlopdata.com
🤔
anyways...i dunno how to configure IIS..but it should be possible. and that would be the right way to do it
right, it should be easy as I beleive and the doc says.
In the overview tab, there's a section called platforms. You can add it there
when I try to add this message pop up
Are you adding it as web?
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?
Do you get any other error?
You mean as your appwrite instance domain?
If it's the app domain you should add it only in the platform section
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
So you can't change anything?
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
Do you have added the domain including subdomain in the correspoinding environment variable?
where ?
_App_Domain?
_App_Domain=mlopdata.com
right?
if i access locally, work fine.
most likely origin blocked
Yes
How to fix it
If you're accessing the instance with the domain appwrite.mlopdata.com you should add that there
Did you have run the command to update?
Also, you're getting the error in the console?
what command
docker compose up -d
After updating .env file
First yes, second not
second what should be ?
localhost
yet, still not working
What's the error you're getting and where?
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
@elfin timber do you think of any
Why did you install again??
what do you mean installing again?
How did you get to this?
I try to upgrade it to 1.4.11
and put the domain name if it is sovled
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
Ok so you need to make sure IIS forwards the host header
oh. any ideas how
[Closed] Self host appwrite