Hyperflow Setup

Sygnal Hyperflow & Hyperspeed run on Cloudflare. This provides a world-class edge-caching framework, full firewall support, and many more capabilities that we leverage to optimize your site's caching and delivery.

Our setup process has three phases;

  1. ( Optional ). Setting up monitoring and alerting for your site ( highly recommended, but optional ).

Installation

For each service,

cd into that service codebase

npx wrangler deploy --config wrangler.navi.jsonc

For the main Hyperflow app hyperflow

Config

e.g. wrangler.navi.jsonc

Vars

Ensure the desired PATH_HANDLERS and REWRITE_HANDLERS are specified.

		"UPSTREAM_ORIGIN": "https://www.tournewzealand.com",
		"ORIGIN": "https://www.tournewzealand.com",

		// List of all RPC workers that support fetch() 
		// Determines order of execution 
		"PATH_HANDLERS": [
			{
				"binding": "HF_LLMS",
			},
			// {
			// 	"binding": "HF_WFX",
			// },			
			// {
			// 	"binding": "HF_INDEXNOW",
			// },			
		],

		// List of all RPC workers that support rewrite() 
		// Determines order of execution 
		"REWRITE_HANDLERS": [
			// {
			// 	"binding": "HF_WFX",
			// },
		],
		
		"POSTHOG_API_KEY": "phc_CfW1VAtR3ueFV3so5hxXQwb1l0RwsarirNw5M39Dz9T" // tournewzealand.com 

Services

List only microservices we're connecting to.

Make certain to update the binding names to the correct service.

	"services": [
		{
			"binding": "HF_LLMS",
			"service": "hf-llms-navi"
	 	},
		// {
		// 	"binding": "HF_WFX",
		// 	"service": "hf-wfx"
	 	// },
		// {
		// 	"binding": "HF_INDEXNOW",
		// 	"service": "hf-indexnow"
	 	// }
	],

Last updated