| 
									
										
										
										
											2021-08-07 20:21:44 -08:00
										 |  |  | { | 
					
						
							|  |  |  | 	auto_https off | 
					
						
							|  |  |  | 	admin off | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-02-20 14:17:51 -09:00
										 |  |  | :3000 { | 
					
						
							|  |  |  | 	@apidocs path /docs /openapi.json | 
					
						
							| 
									
										
										
										
											2021-08-07 20:21:44 -08:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	@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 | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-04-02 16:35:53 -08:00
										 |  |  | 	# Handles User Images | 
					
						
							| 
									
										
										
										
											2022-02-20 14:17:51 -09:00
										 |  |  | 	handle_path /api/media/users/* { | 
					
						
							|  |  |  | 		header @static Cache-Control max-age=31536000 | 
					
						
							|  |  |  | 		root * /app/data/users/ | 
					
						
							|  |  |  | 		file_server | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-04-02 16:35:53 -08:00
										 |  |  | 	# Handle Docker Volume Validation File | 
					
						
							|  |  |  | 	handle_path /api/media/docker/* { | 
					
						
							|  |  |  | 		root * /app/data/docker-validation/ | 
					
						
							|  |  |  | 		file_server | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-02-20 14:17:51 -09:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	handle @apidocs { | 
					
						
							| 
									
										
										
										
											2021-08-07 20:21:44 -08:00
										 |  |  | 		uri strip_suffix / | 
					
						
							| 
									
										
										
										
											2022-10-22 11:43:03 -08:00
										 |  |  | 		reverse_proxy {$API_URL} | 
					
						
							| 
									
										
										
										
											2021-08-07 20:21:44 -08:00
										 |  |  | 	} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	handle { | 
					
						
							| 
									
										
										
										
											2022-02-20 14:17:51 -09:00
										 |  |  | 		uri strip_suffix / | 
					
						
							|  |  |  | 		reverse_proxy http://127.0.0.1:3001 | 
					
						
							| 
									
										
										
										
											2021-08-07 20:21:44 -08:00
										 |  |  | 	} | 
					
						
							| 
									
										
										
										
											2022-04-02 16:35:53 -08:00
										 |  |  | } |