mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-10-31 18:29:21 +00:00 
			
		
		
		
	Renamed webserver roles to more speakable names
This commit is contained in:
		
							
								
								
									
										12
									
								
								roles/srv-proxy-core/templates/location/media.conf.j2
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								roles/srv-proxy-core/templates/location/media.conf.j2
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,12 @@ | ||||
| location ~* \.(jpg|jpeg|png|gif|webp|ico|svg)$ { | ||||
|     # Cache in browser | ||||
|     expires 30d; | ||||
|     add_header Cache-Control "public, max-age=2592000, immutable"; | ||||
|  | ||||
|     # Cache on reverse proxy side | ||||
|     proxy_pass http://127.0.0.1:{{ http_port }}; | ||||
|     proxy_cache imgcache; | ||||
|     proxy_cache_valid 200 302 60m; | ||||
|     proxy_cache_valid 404 1m; | ||||
|     add_header X-Proxy-Cache $upstream_cache_status; | ||||
| } | ||||
		Reference in New Issue
	
	Block a user