Move z9-host-specific configs and templates into z9 subdirectories
This commit is contained in:
		
					parent
					
						
							
								4d12d802b8
							
						
					
				
			
			
				commit
				
					
						3d238d9f63
					
				
			
		
					 49 changed files with 40 additions and 40 deletions
				
			
		
							
								
								
									
										29
									
								
								playbooks/files/z9/configs/esphome/nginx/esphome.conf
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								playbooks/files/z9/configs/esphome/nginx/esphome.conf
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,29 @@ | |||
| map $http_upgrade $connection_upgrade { | ||||
|     default upgrade; | ||||
|     '' close; | ||||
| } | ||||
| 
 | ||||
| server { | ||||
|     listen 443 ssl http2; | ||||
|     listen [::]:443 ssl http2; | ||||
| 
 | ||||
|     server_name esphome.ccchh.net; | ||||
| 
 | ||||
|     ssl_certificate /etc/letsencrypt/live/esphome.ccchh.net/fullchain.pem; | ||||
|     ssl_certificate_key /etc/letsencrypt/live/esphome.ccchh.net/privkey.pem; | ||||
|     # verify chain of trust of OCSP response using Root CA and Intermediate certs | ||||
|     ssl_trusted_certificate /etc/letsencrypt/live/esphome.ccchh.net/chain.pem; | ||||
| 
 | ||||
|     add_header Strict-Transport-Security "max-age=63072000" always; | ||||
| 
 | ||||
|     location / { | ||||
|         proxy_set_header Host $host; | ||||
|         proxy_redirect http:// https://; | ||||
|         proxy_http_version 1.1; | ||||
|         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||||
|         proxy_set_header X-Real-IP $remote_addr; | ||||
|         proxy_set_header Upgrade $http_upgrade; | ||||
|         proxy_set_header Connection $connection_upgrade; | ||||
|         proxy_pass http://localhost:6052; | ||||
|     } | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 julian
					julian