You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to deploy my AppWrite instance under a subpath of my domain (www.example.com/appwrite). I need this because I already have Apache2 with mod_proxy handling all my requests from port 80 and 443 and redirecting the user to different port based on the url.
I sorta got it working but all the links on the page are broken. Not redirecting my custom url.
Reacted by Alex Weininger, 50R47, Matt Bannert and Yang Lei
We don't have support for subpaths. I think the API should work (haven't tested it), but I guess the console will have a lot of broken assets and links. The best way to run Appwrite on an existing setup would probably be on a subdomain or a non-default port.
I am trying to go with the reverse proxy route and see if i can get it working before i completely give up the idea of using this. I don't use functions yet, I just need the console to work and display properly.
I am trying to go with the reverse proxy route and see if i can get it working before i completely give up the idea of using this. I don't use functions yet, I just need the console to work and display properly.
are you using docker or docker compose?, mine isnt working T-T
Yes I am using docker compose with NGINX. I couldn't get it to work.
I am using NextJS, I will now try to proxy the requests from the client to appwrite via an api route.
Yes I am using docker compose with NGINX. I couldn't get it to work.
I am using NextJS, I will now try to proxy the requests from the client to appwrite via an api route.
try this on you vhost
ProxyRequests Off
ProxyPreserveHost On
ProxyPass / http://127.0.0.1:9001/
ProxyPassReverse / http://127.0.0.1:9001/
#SSLProxyEngine on
<Proxy *>
Require all granted
</Proxy>
# Websocket tracker
RewriteEngine On
RewriteCond %{HTTP:Upgrade} websocket [NC]
RewriteRule /(.*) ws://127.0.0.1:9001/$1 [P,L]
This is for client sdk requests. Later on I might do the same for the console where I will use regex to replace all urls in the response from appwrite. Unless the maintainers implement baseurl change first of course. It seems like such an essential thing for a backend service, still can't fathom it hasn't been there yet.
This would be really nice to have. I would like to run Appwrite and my frontend on the same domain easily. And just have Appwrite be located at www.example.com/api or something similar.
Reacted by Christofer Huber, Matt Bannert and Yang Lei
As mentioned on #5430 this will be a huge lift for us and doesn't seem to be worth the effort vs the benefit. Our official recommendation for hosting Appwrite on the same server with other apps is to use a subdomain.
Activity
eldadfux commentedon Mar 20, 2021
We don't have support for subpaths. I think the API should work (haven't tested it), but I guess the console will have a lot of broken assets and links. The best way to run Appwrite on an existing setup would probably be on a subdomain or a non-default port.
DevDorrejo commentedon Mar 22, 2021
using reverse proxy, will made a lot of the function fails, for example storage, when you try to upload a file will fail.
iSplasher commentedon Mar 22, 2021
Wow this issue just bit me hard.
I wish I knew this before investing my time with this library.
DevDorrejo commentedon Mar 22, 2021
one think i havent try is configuring the web sockets, to test if the webhook and the other function that fail will work.
iSplasher commentedon Mar 22, 2021
I am trying to go with the reverse proxy route and see if i can get it working before i completely give up the idea of using this. I don't use functions yet, I just need the console to work and display properly.
DevDorrejo commentedon Mar 22, 2021
are you using docker or docker compose?, mine isnt working T-T
iSplasher commentedon Mar 22, 2021
Yes I am using docker compose with NGINX. I couldn't get it to work.
I am using NextJS, I will now try to proxy the requests from the client to appwrite via an api route.
DevDorrejo commentedon Mar 22, 2021
try this on you vhost
iSplasher commentedon Mar 23, 2021
I ended up proxying the requests through the webserver
This is for client sdk requests. Later on I might do the same for the console where I will use regex to replace all urls in the response from appwrite. Unless the maintainers implement baseurl change first of course. It seems like such an essential thing for a backend service, still can't fathom it hasn't been there yet.
alexweininger commentedon Aug 10, 2021
This would be really nice to have. I would like to run Appwrite and my frontend on the same domain easily. And just have Appwrite be located at www.example.com/api or something similar.
eldadfux commentedon Feb 22, 2024
As mentioned on #5430 this will be a huge lift for us and doesn't seem to be worth the effort vs the benefit. Our official recommendation for hosting Appwrite on the same server with other apps is to use a subdomain.