# HTTPS in front of Photon with a shared key. OPS sends the key as X-Api-Key
# (the connector's "API key" field). Photon itself is never published.
{$PHOTON_HOST} {
	@authorized header X-Api-Key {$PHOTON_API_KEY}
	handle @authorized {
		reverse_proxy photon:2322
	}
	handle {
		respond "unauthorized" 401
	}
}
