21 lines
		
	
	
		
			392 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			392 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| <% if File.exist?(@ssl_cert) && File.exist?(@ssl_key) -%>
 | |
| # Generated by Chef
 | |
| 
 | |
| server {
 | |
|   listen 443 ssl http2;
 | |
|   listen [::]:443 ssl http2;
 | |
|   server_name <%= @server_name %>;
 | |
| 
 | |
|   ssl_certificate     <%= @ssl_cert %>;
 | |
|   ssl_certificate_key <%= @ssl_key %>;
 | |
| 
 | |
|   root /var/www/upload;
 | |
| 
 | |
|   client_max_body_size <%= @max_upload_size_mb %>m;
 | |
| 
 | |
|   location / {
 | |
|     perl upload::handle;
 | |
|   }
 | |
| }
 | |
| <% end -%>
 |