Created
August 13, 2022 07:27
-
-
Save afzl-wtu/509fb70549c54bf97ec0e25d993bedc2 to your computer and use it in GitHub Desktop.
Appwrite with HestiaCP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Result: appwrite is working fine with HTTPS | |
I had HestiaCP installed wich was occupying my ports 80 and 443 by default. So I need to change ports while setting up my appwrite installation. | |
We assume our port for appwrite as: Http port: 2022 and Https port: 2023 | |
Open HestiaCP web pannel and add your new domain there and hit save button. | |
Now click on edit web domain button in front of your recently added domain and click on "Enable SSL for this domain" and select all there fields and hit save button. Once the success message shows you are ready to make new proxy template in /usr/local/hestia/data/templates/web/nginx. | |
In the directory above copy default.tpl and default.stpl as appwrite.tpl and appwrite.stpl in the same directory. | |
Now open appwrite.tpl with your favourite text editor: | |
1. change "proxy_pass http://%ip%:2022;" everywhere. | |
2. remove line "include %home%/%user%/conf/web/%domain%/nginx.conf_*;" | |
Repeat step 1 and 2 for appwrite.stpl file also and type 2023 instead of 2022 and save file. | |
Now back to hestiacp and click on "Advanced Options" below "Enable SSL for this domain" click on "Proxy Template" and select appwrite there and hit save button. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment