mirror of
				https://github.com/mealie-recipes/mealie.git
				synced 2025-10-30 17:53:31 -04:00 
			
		
		
		
	* feat: add api endpoints for volume check * feat: add docker icon * add size prop * feat: add frontend UI for checking docker-volume * update caddy to server validation file * add more extensive documentation around setup req * fix: wrong type on user id #1123 * spelling * refactor: cleanup excessive function calls
		
			
				
	
	
		
			47 lines
		
	
	
		
			796 B
		
	
	
	
		
			Caddyfile
		
	
	
	
	
	
			
		
		
	
	
			47 lines
		
	
	
		
			796 B
		
	
	
	
		
			Caddyfile
		
	
	
	
	
	
| {
 | |
| 	auto_https off
 | |
| 	admin off
 | |
| }
 | |
| 
 | |
| :3000 {
 | |
| 	@apidocs path /docs /openapi.json
 | |
| 
 | |
| 	@static {
 | |
| 		file
 | |
| 		path *.ico *.css *.js *.gif *.jpg *.jpeg *.png *.svg *.woff *.woff2 *.webp
 | |
| 	}
 | |
| 
 | |
| 	encode gzip zstd
 | |
| 
 | |
| 	# Handles Recipe Images / Assets
 | |
| 	handle_path /api/media/recipes/* {
 | |
| 		header @static Cache-Control max-age=31536000
 | |
| 		root * /app/data/recipes/
 | |
| 		file_server
 | |
| 	}
 | |
| 
 | |
| 	# Handles User Images
 | |
| 	handle_path /api/media/users/* {
 | |
| 		header @static Cache-Control max-age=31536000
 | |
| 		root * /app/data/users/
 | |
| 		file_server
 | |
| 	}
 | |
| 
 | |
| 	# Handle Docker Volume Validation File
 | |
| 	handle_path /api/media/docker/* {
 | |
| 		root * /app/data/docker-validation/
 | |
| 		file_server
 | |
| 	}
 | |
| 
 | |
| 
 | |
| 	handle @apidocs {
 | |
| 		uri strip_suffix /
 | |
| 		reverse_proxy http://mealie-api:9000
 | |
| 	}
 | |
| 
 | |
| 	handle {
 | |
| 		uri strip_suffix /
 | |
| 		reverse_proxy http://127.0.0.1:3001
 | |
| 	}
 | |
| }
 |