{
	acme_dns cloudflare ewWyUJSFXIDDTF9HX2OmI_xpOgpHevzL9QNMtcOm
}

(cf_tls) {
	tls {
		dns cloudflare ewWyUJSFXIDDTF9HX2OmI_xpOgpHevzL9QNMtcOm
	}
	header {
		Content-Security-Policy upgrade-insecure-requests
	}
}

*.ccalifice.com {
	@paperless host paperless.ccalifice.com
	reverse_proxy @paperless 192.168.1.202:8000

	@remote host remote.ccalifice.com
	reverse_proxy @remote http://192.168.1.202:8181

	@vaultwarden host vaultwarden.ccalifice.com
	reverse_proxy @vaultwarden http://192.168.1.202:8080

	@filebrowser host filebrowser.ccalifice.com
	reverse_proxy @filebrowser http://192.168.1.202:8686

	@ntfy host ntfy.ccalifice.com
	reverse_proxy @ntfy http://192.168.1.202:9898

	@n8n host n8n.ccalifice.com
	reverse_proxy @n8n http://192.168.1.202:5678

	@jellyseer host jellyseer.ccalifice.com
	reverse_proxy @jellyseer http://192.168.1.201:5055

	@tasks host tasks.ccalifice.com
	reverse_proxy @tasks http://192.168.1.202:3456

	@evo host evo.ccalifice.com
	reverse_proxy @evo http://192.168.1.204:8080

	@pdf host pdf.ccalifice.com
	reverse_proxy @pdf http://192.168.1.202:8585

	@loki host loki.ccalifice.com
	reverse_proxy @loki http://192.168.1.202:3100

	#	@ariang host ariang.ccalifice.com
	#	reverse_proxy @ariang http://192.168.1.202:6880
}

ccalifice.com {
	@@ host ccalifice.com
	respond "Hello ccalifice!"
}

files.sereiaguardia.com {
	redir https://files.sereiaguardia.com:8088{uri} permanent
}

files.sereiaguardia.com:8088 {
	reverse_proxy 192.168.1.67:8088
}

files.sereiaguardia.com:9021 {
	reverse_proxy 192.168.1.67:9021
}

*.bortolasosail.com.br, bortolasosail.com.br {
	header {
		Content-Security-Policy upgrade-insecure-requests
	}

	@www host www.bortolasosail.com.br
	root * /srv/bortolaso-sail/
	file_server

	@@ host bortolasosail.com.br
	root * /srv/bortolaso-sail/
	file_server
}
