Update nginx/README.md

This commit is contained in:
Minecon724 2025-03-22 15:13:10 +01:00
commit 5743bf72a4

View file

@ -1,10 +1,11 @@
Do this in `/etc/nginx` Do this in `/etc/nginx` (or if using Docker, the directory that maps to it)
1. [Copy `nginx.conf` from this directory](/Minecon724/dream-setup/src/branch/master/nginx/nginx.conf) 1. Remove everything in that directory
2. Remove `conf.d/default.conf` 2. Copy [`nginx.conf`](nginx.conf) and [`mime.types`](mime.types) from this directory
3. Generate dhparam and snakeoil cert: 3. Remove `conf.d/default.conf`
4. Generate dhparam and snakeoil cert:
``` ```
openssl dhparam -out dhparam.pem 4096 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 openssl req -new -x509 -days 365 -noenc -out snakeoil.pem -keyout snakeoil.key # just keep pressing Enter
``` ```
4. Make your server entries in `conf.d/` like [server.conf](/Minecon724/dream-setup/src/branch/master/nginx/server.conf) 5. `server` entries go into `conf.d/`. See [server.conf](server.conf) for a template.