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 have installed appwrite on a digital ocean server with docker compose. How do I log in to the dashboard the first time?
I have tried to sign up but get a message that "Access from this client host is forbidden. URL host must be one of..."
Checked my own instance on DigitalOcean with appwrite.xx.sample.com pointing to my droplet from my local /etc/hosts and everything seems to work OK. Please post your complete error response.
I just realized that your Appwrite instance is wrongly thinking that its hostname is 127.0.0.1. This is probably because of the proxy you have in front of him. Do you know if your proxy is passing an X-Forwarded-Host header or something similar? If this is the case, we can add a quick fix for Appwrite to try and get the X-Forwarded-Host value before attempting to get the local hostname variable.
@kervi are you using this proxy only for adding SSL certificates, or is there something else you need it for?
I have just added an option to easily pass custom SSL certificate. It's going to be released in our next 0.4 version. I'll write more about it in the release notes.
@monatis at the first stage you will be allowed to add your own certificate (signed or self-signed) to the Appwrite docker container. A Letsencrypt integration can be a really cool feature for a production deployment. Can you suggest any good docker container daemon that we can use for this?
Hi @eldadfux, I think that my username was mistaken while you were intending to mention @ghost. Anyway, I'm happy to share my ideas. You can use Certbot Docker image for Letsencrypt integration; however, it's somewhat tricky to implement. You can have a look at this useful tutorial, which also has sample docker-compose.yml file and shell scripts. It seems that you need to provide a shell script in this case to get everything up and running smoothly. This shell script might walk through the configuration steps to ask for paths to signed certificates or automatic certificate obtaining. This shell script might also get the latest docker-compose.yml file and change environment variables in it to values obtained from the user. It could also be installed to a bin directory, so that we could simply do, for instance, appwrite start or appwrite stop.
Activity
eldadfux commentedon Nov 12, 2019
Hey @kervi, what is the URL you have in your browser while signing up? and what version of Appwrite are you using?
eldadfux commentedon Nov 12, 2019
Checked my own instance on DigitalOcean with appwrite.xx.sample.com pointing to my droplet from my local /etc/hosts and everything seems to work OK. Please post your complete error response.
eldadfux commentedon Nov 12, 2019
We had solved a similar issue in the past by allowing local hostname as a default whitelisted client in this commit:
a7d8a8e#diff-fec850b5753a5278039a717f479b6f13
Try updating Appwrite docker image in your docker-compose.yml to 0.3.1, and run docker-compose.yml up -d again.
If this isn't working it might be an issue with wrong detection of the forwarded port number, I'll check this direction in the meanwhile.
eldadfux commentedon Nov 14, 2019
I just realized that your Appwrite instance is wrongly thinking that its hostname is 127.0.0.1. This is probably because of the proxy you have in front of him. Do you know if your proxy is passing an X-Forwarded-Host header or something similar? If this is the case, we can add a quick fix for Appwrite to try and get the X-Forwarded-Host value before attempting to get the local hostname variable.
eldadfux commentedon Nov 18, 2019
@kervi are you using this proxy only for adding SSL certificates, or is there something else you need it for?
I have just added an option to easily pass custom SSL certificate. It's going to be released in our next 0.4 version. I'll write more about it in the release notes.
eldadfux commentedon Nov 23, 2019
@monatis at the first stage you will be allowed to add your own certificate (signed or self-signed) to the Appwrite docker container. A Letsencrypt integration can be a really cool feature for a production deployment. Can you suggest any good docker container daemon that we can use for this?
monatis commentedon Nov 23, 2019
Hi @eldadfux, I think that my username was mistaken while you were intending to mention @ghost. Anyway, I'm happy to share my ideas. You can use Certbot Docker image for Letsencrypt integration; however, it's somewhat tricky to implement. You can have a look at this useful tutorial, which also has sample
docker-compose.ymlfile and shell scripts. It seems that you need to provide a shell script in this case to get everything up and running smoothly. This shell script might walk through the configuration steps to ask for paths to signed certificates or automatic certificate obtaining. This shell script might also get the latestdocker-compose.ymlfile and change environment variables in it to values obtained from the user. It could also be installed to abindirectory, so that we could simply do, for instance,appwrite startorappwrite stop.TorstenDittmann commentedon Apr 6, 2021
This issue had no recent activity. It will be closed if no further activity occurs.
Thank you for your contributions.
Merge pull request appwrite#254 from utopia-php/bulk-cache-load
Refactor: split static resources from per-request context (#254)
Make routing coroutine-safe and tighten the routing API (appwrite#255)