14 lines
		
	
	
		
			No EOL
		
	
	
		
			268 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			No EOL
		
	
	
		
			268 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
| #! /bin/bash
 | |
| 
 | |
| echo 'Starting nginx'
 | |
| 
 | |
| if [ -f /conf/stack/ssl.key ]
 | |
| then
 | |
|   echo "Using HTTPS"
 | |
|   /usr/local/nginx/sbin/nginx -c /conf/nginx.conf
 | |
| else
 | |
|   echo "No SSL key provided, using HTTP"
 | |
|   /usr/local/nginx/sbin/nginx -c /conf/nginx-nossl.conf
 | |
| fi
 | |
| 
 | |
| echo 'Nginx exited' |