# HiTechCloud Panel - Caddy WebEngine (Multi-WebServer Hosting)
#
# A dedicated Caddy instance listening only on loopback ports <ENGINE_HTTP_PORT>
# (HTTP) and <ENGINE_HTTPS_PORT> (HTTPS). Public traffic never reaches it
# directly - the nginx front-end on 80/443 proxies to it, which is also why
# automatic HTTPS is off: certificates are the front-end's.
{
	admin unix//run/hitechcloud/caddy-admin.sock
	auto_https off
	http_port <ENGINE_HTTP_PORT>
	log {
		output file /var/log/hitechcloud/native/caddy-error.log
		level WARN
	}
	servers {
		trusted_proxies static 127.0.0.1/32 ::1/128
	}
}

import /etc/hitechcloud/native/caddy/conf.d/*.conf
