Update SELF-HOSTING.md
This commit is contained in:
parent
7be48e3f4a
commit
add0a5d1d2
@ -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)
|
||||||
|
Reference in New Issue
Block a user