Update nginx/README.md
This commit is contained in:
		
					parent
					
						
							
								b093b71c86
							
						
					
				
			
			
				commit
				
					
						5743bf72a4
					
				
			
		
					 1 changed files with 7 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -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.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue