dream-setup/nginx/README.md

573 B

Do this in /etc/nginx (or if using Docker, the directory that maps to it)

  1. Remove everything in that directory
  2. Copy nginx.conf and mime.types from this directory
  3. Remove conf.d/default.conf
  4. Generate dhparam and snakeoil cert:
openssl dhparam -out dhparam.pem 4096 # This will take a few minutes. Reduce to 3072 if you'd like.
openssl req -new -x509 -days 365 -noenc -out snakeoil.pem -keyout snakeoil.key # just keep pressing Enter
  1. server entries go into conf.d/. See server.conf for a template.