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 } 13} 14``` 15Then generate certificate with `certbot`