{
	auto_https off
	http_port 80
	https_port 0
}
:80 {
	handle /api/* {
		reverse_proxy lazycat-backend:3001
	}
	handle /uploads/* {
		reverse_proxy lazycat-backend:3001
	}
	handle /files/home* {
		route {
			reverse_proxy https://file.{$LAZYCAT_BOX_DOMAIN} {
				header_up Host file.{$LAZYCAT_BOX_DOMAIN}
			}
		}
	}
	handle /voices/* {
		reverse_proxy lazycat-backend:3001
	}
	handle /library/* {
		reverse_proxy lazycat-backend:3001
	}
	handle {
		route {
			root * /lzcapp/pkg/content/www
			try_files {path} /index.html
			header Cache-Control "max-age=60, private, must-revalidate"
			file_server
		}
	}
}
