Skip to content

Instantly share code, notes, and snippets.

@shengshampoo
shengshampoo / nginx_h2o_h3.markdown
Last active October 8, 2024 01:30
Nginx + H2O 实作支援Quic/h3

记录一些新发现:

[H2O][1],
和 Nginx一样都是HTTP server,
在 Github 发佈已支援试验性质的h3 (iquic)。

然而特别之处,
在于单一执行 H2O,
发现到可以只连线 UDP 端口。
无须像Caddy 一样,

@shengshampoo
shengshampoo / Caddyfile
Last active May 24, 2018 14:11
My_VPS_combine_Caddy&aria2&webui_aria2
https://VPS_IP:Port {
root /path/to/webui-aria2
gzip
push
tls aria2-service.pem aria2-service.key {
ciphers ECDHE-RSA-AES256-GCM-SHA384 ECDHE-RSA-WITH-CHACHA20-POLY1305
curves X25519
}
header / {
# https://caddyserver.com/docs/header
@shengshampoo
shengshampoo / execute_dns_resolver_shell_script.sh
Last active April 7, 2018 11:54
learner's some config about combine with two dns resolvers (stubby and unbound) to set localhost DNS-over-TLS
# https://blog.phoenixlzx.com/2016/04/27/better-dns-with-unbound/
# DNS resolver setting
sudo apt-get -y install unbound
sudo cp -f ./unbound.conf /etc/unbound/unbound.conf
# usd bottom config:unbound.conf
sudo wget -O /etc/unbound/root.hints https://www.internic.net/domain/named.cache
sudo wget -O /etc/unbound/adservers "https://pgl.yoyo.org/adservers/serverlist.php?hostformat=unbound&showintro=0&startdate%5Bday%5D=&startdate%5Bmonth%5D=&startdate%5Byear%5D=&mimetype=plaintext"
sudo unbound-control-setup
sudo unbound-control reload