{
	default_sni {$SURROUNDCORE_UI_IP:127.0.0.1}
}

http://{$SURROUNDCORE_UI_HOST:core.local}, http://{$SURROUNDCORE_UI_IP:127.0.0.1} {
	encode zstd gzip
	reverse_proxy {$SURROUNDCORE_UPSTREAM:host.docker.internal:8080}

	header {
		X-Content-Type-Options "nosniff"
		X-Frame-Options "SAMEORIGIN"
		Referrer-Policy "same-origin"
	}
}

https://{$SURROUNDCORE_UI_HOST:core.local}, https://{$SURROUNDCORE_UI_IP:127.0.0.1} {
	encode zstd gzip
	reverse_proxy {$SURROUNDCORE_UPSTREAM:host.docker.internal:8080}

	header {
		X-Content-Type-Options "nosniff"
		X-Frame-Options "SAMEORIGIN"
		Referrer-Policy "same-origin"
	}
}
