From add0a5d1d23542e88aa1b98f0c447a5b8f5973ec Mon Sep 17 00:00:00 2001 From: PLUJA <64632615+pluja@users.noreply.github.com> Date: Fri, 4 Sep 2020 16:42:37 +0200 Subject: [PATCH] Update SELF-HOSTING.md --- SELF-HOSTING.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/SELF-HOSTING.md b/SELF-HOSTING.md index 2a43c9f..bd7de98 100644 --- a/SELF-HOSTING.md +++ b/SELF-HOSTING.md @@ -100,3 +100,16 @@ The Yotter application server powered by gunicorn is now running privately port * `sudo rm /etc/nginx/sites-enabled/default` Create a new Nginx site, you can run `sudo nano /etc/nginx/sites-enabled/yotter` + +And write this on it: +``` +server { + server_name ; + + location / { + proxy_pass http://localhost:8000; + } +} +``` + +[Follow this instructions to install certbot and generate an ssl certificate](https://certbot.eff.org/lets-encrypt/ubuntufocal-nginx)