Skip to content

Instantly share code, notes, and snippets.

View afzl-wtu's full-sized avatar
🏠
Working from home

Muhammad Afzal Tahir afzl-wtu

🏠
Working from home
  • Punjab, Pakistan
View GitHub Profile
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_*;"
@afzl-wtu
afzl-wtu / input.conf
Last active February 6, 2024 04:16 — forked from abhimanyu003/input.conf
MPV Keyboard Shortcut to match VLC (Updated)
## MPV Keyboard Shortcut to match VLC
## Path: [Installation Directory of MPV]/mpv/
## ==================
UP add volume 5 # ignore keybinds for
DOWN add volume -5 # directional keys
LEFT seek -10
RIGHT seek 10
SPACE cycle pause # toggle pause