DonneyF / ubcgrades

https://ubcgrades.com
MIT License
38 stars 4 forks source link

Question: how is this hosted? #7

Open kevinlinxc opened 1 year ago

kevinlinxc commented 1 year ago

Just curious, how is this hosted?

DonneyF commented 1 year ago

I use Gunicorn to serve the Flask app. I then use nginx as a reverse proxy to the API, and to serve the static files. This is hosted on a small VPS, where I also use Let's Encrypt to create the HTTPS certificates. Lastly I use CloudFlare as a one-stop for CDN, caching, page rules, etc.

kevinlinxc commented 1 year ago

Thanks. Does it cost much to host?

DonneyF commented 1 year ago

I just use free services. Both Oracle Cloud and Google Cloud have perpetual free tiers that give you compute instances to try out. You do need a credit card though. The only thing that's costing dollars is the domain.

Hosting this does not require much compute resources if at all. Caching does all the heavy work. You could just host everything at home and use something like cloudflared to expose it to the internet without port-forwarding or exposing your home network.