Rank 2: Process
hey Hope you all are doing well. Appwrite is now has become my favorite backend . I was tired of high pricings of Firebase so I decided to self host Appwrite on my own server. It was a good experience that everything is well documented and I was able to self host Appwrite very easily. During the process the only problem that I faced was SSl and serving Appwrite behind my Nginx Proxy Server. Please clear my doubts regarding: 1. I want to run my Appwrite on a different ports say 5696 for http and 5697 for SSL. It works fine when with http but not worked with https. and here is my Nginx Config file
listen 80; server_name example.com www.example.com;
location / { proxy_pass http://example.com:5696; proxy_http_version 1.1; proxy_set_header Host $host:$server_port; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme;
}}``` What should I do to make it able to serve on https and http as well. All of your kind and valuable suggestions are welcome.