It creates a folder, the nginx vhost for certbot and HTTP redirects, and also runs certbot and recreates the nginx vhost that includes the TLS cert
		
			
				
	
	
		
			12 lines
		
	
	
		
			235 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			235 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| # Used by Let's Encrypt (certbot in webroot mode)
 | |
| server {
 | |
|   listen 80;
 | |
|   server_name <%= @server_name %>;
 | |
|   location /.well-known {
 | |
|     root "<%= @root_directory %>";
 | |
|   }
 | |
|   location / {
 | |
|     return 301 https://$host$request_uri;
 | |
|   }
 | |
| }
 |