It's probably overkill for a single html page, one CSS file, two javascripts and one API call to use docker to set this up, but it is kind of future-proof and brings a lot of nice stuff:
- nginx reverse proxy
- auto-renewing TLS certs
- html server
- api server (node.js)
- reproducible builds
You'll need docker and docker-compose.
In the main directory run:
git pull
cd docker-nginx-letsencrypt
docker-compose up
Made in Caen with love. 2018