tesla.{$SUBDOMAIN}.{$DOMAIN} {
	log {
		output file /var/log/tesla.log
	}

	import ../conf/authentik.caddy
	reverse_proxy host:3004

	handle /assets/* {
		reverse_proxy http://host:4000
	}

	handle /live/* {
		reverse_proxy http://host:4000
	}

	handle /settings {
		reverse_proxy http://host:4000
	}

	handle_path /mate* {
		reverse_proxy http://host:4000
	}
}
