You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
444 B

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