configs/nginx-conf/README.md
nginx-conf/README.mdRaw
1# nginx-config
2
3In `/etc/nginx/sites-enabled`
4
5- file: `sub.domain.com`:
6```
7server {
8 server_name sub.domain.com;
9
10 location / {
11 proxy_pass http://localhost:PORT;
12 proxy_http_version 1.1;
13 proxy_set_header Upgrade $http_upgrade;
14 proxy_set_header Connection "upgrade";
15 proxy_read_timeout 86400;
16 }
17}
18```
19Then generate certificate with `certbot`