Update SELF-HOSTING.md

This commit is contained in:
PLUJA 2020-09-04 16:42:37 +02:00 committed by GitHub
parent 7be48e3f4a
commit add0a5d1d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -100,3 +100,16 @@ The Yotter application server powered by gunicorn is now running privately port
* `sudo rm /etc/nginx/sites-enabled/default` * `sudo rm /etc/nginx/sites-enabled/default`
Create a new Nginx site, you can run `sudo nano /etc/nginx/sites-enabled/yotter` Create a new Nginx site, you can run `sudo nano /etc/nginx/sites-enabled/yotter`
And write this on it:
```
server {
server_name <yourdomain>;
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)