{
	admin off
	email admin@tkmind.cn
	http_port 8090
	https_port 8444
}

# m.tkmind.cn：公网入口转发到 Studio 本机 H5 (:8081)
# 证书：acme.sh DNS-01 + 阿里云 API，自动续期
m.tkmind.cn {
	tls /Users/john/.acme.sh/m.tkmind.cn_ecc/fullchain.cer /Users/john/.acme.sh/m.tkmind.cn_ecc/m.tkmind.cn.key

	reverse_proxy 127.0.0.1:8081 {
		header_down +X-Memind-Upstream {http.reverse_proxy.upstream.hostport}
		flush_interval -1
		transport http {
			read_timeout 0
			write_timeout 0
		}
	}
}

plaza.tkmind.cn {
	tls /Users/john/.acme.sh/plaza.tkmind.cn_ecc/fullchain.cer /Users/john/.acme.sh/plaza.tkmind.cn_ecc/plaza.tkmind.cn.key

	reverse_proxy 127.0.0.1:3001 {
		flush_interval -1
		transport http {
			read_timeout 0
			write_timeout 0
		}
	}
}

gadm.tkmind.cn {
	tls /Users/john/.acme.sh/gadm.tkmind.cn_ecc/fullchain.cer /Users/john/.acme.sh/gadm.tkmind.cn_ecc/gadm.tkmind.cn.key

	reverse_proxy 127.0.0.1:5174 {
		flush_interval -1
		transport http {
			read_timeout 0
			write_timeout 0
		}
	}
}
