{
	email admin@desineuron.in
	log {
		output file /var/log/caddy/admin.log
		format json
	}
}

office.desineuron.in, git.desineuron.in, cloud.desineuron.in, projects.desineuron.in, talk.desineuron.in, vpn.desineuron.in {
	tls /etc/caddy/tls/fullchain.pem /etc/caddy/tls/privkey.pem

	log {
		output file /var/log/caddy/access.log
		format json
	}

	reverse_proxy https://127.0.0.1:8443 {
		header_up Host {host}
		header_up X-Forwarded-Host {host}
		header_up X-Forwarded-Proto {scheme}
		header_up X-Forwarded-For {remote_host}
		transport http {
			tls_insecure_skip_verify
		}
	}
}

velocity.desineuron.in {
	log {
		output file /var/log/caddy/access.log
		format json
	}

	import /etc/caddy/managed/llm_upstream.caddy_inc

	reverse_proxy https://127.0.0.1:8443 {
		header_up Host {host}
		header_up X-Forwarded-Host {host}
		header_up X-Forwarded-Proto {scheme}
		header_up X-Forwarded-For {remote_host}
		transport http {
			tls_insecure_skip_verify
		}
	}
}

ops.desineuron.in {
	log {
		output file /var/log/caddy/access.log
		format json
	}

	reverse_proxy https://127.0.0.1:8443 {
		header_up Host {host}
		header_up X-Forwarded-Host {host}
		header_up X-Forwarded-Proto {scheme}
		header_up X-Forwarded-For {remote_host}
		transport http {
			tls_insecure_skip_verify
		}
	}
}

import /etc/caddy/managed/*.caddy
