diff --git a/nginx/README.md b/nginx/README.md index d25f420..dfb65fd 100644 --- a/nginx/README.md +++ b/nginx/README.md @@ -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) -2. Remove `conf.d/default.conf` -3. Generate dhparam and snakeoil cert: +1. Remove everything in that directory +2. Copy [`nginx.conf`](nginx.conf) and [`mime.types`](mime.types) from this directory +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 ``` -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.