Skip to content

Commit

Permalink
Update naive_Caddyfile
Browse files Browse the repository at this point in the history
  • Loading branch information
lxhao61 committed May 14, 2021
1 parent 5385c3c commit 4f01040
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions naiveproxy(caddy+forwardproxy)/naive_Caddyfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{
order forward_proxy before header
admin off
log { #注意:版本不小于v2.4.0才支持日志全局配置,否则一一单项配置。
output file /var/log/caddy/access.log
level ERROR
}
servers :443 {
protocol {
experimental_http3 #开启http3 server支持
Expand All @@ -13,10 +17,6 @@
ciphers TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256
alpn h2 http/1.1
}
log {
output file /var/log/caddy/access.log
level ERROR
}

forward_proxy {
basic_auth user pass #naiveproxy账号与密码,修改为自己的。
Expand Down

0 comments on commit 4f01040

Please sign in to comment.