Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Caddy2 http3 配置 #95

Open
taontech opened this issue Oct 9, 2023 · 0 comments
Open

Caddy2 http3 配置 #95

taontech opened this issue Oct 9, 2023 · 0 comments

Comments

@taontech
Copy link
Owner

taontech commented Oct 9, 2023


检测可以支持H3

{
	servers {
		protocols h1 h2 h3
	}
}
https://youdomain.domain:443 {
	tls ***@***.com
	encode zstd gzip
	log {
		output file /var/log/caddywww.log
	}
	header {
		alt-svc h3=":443", ma=2592000
	}
	
	root /your/root/
	file_server
	handle_errors {
		@404 {
			expression {http.error.status_code} == 404
		}
		handle @404 {
			rewrite * /404.html
			file_server
		}
	}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant