Skip to content

Caddy后置的Caddyfile配置,vless+vision+reality(偷自己,Caddy后置,caddyfile) #240

Answered by lxhao61
roger2255 asked this question in Q&A
Discussion options

You must be logged in to vote

VLESS+Vision+TLS 不适合使用 Caddyfile 配置,配置麻烦且冗余。
VLESS+Vision+REALITY 偷自己,Caddyfile 配置可参考如下示例:

{
        admin off #禁用 admin API。(选配)
        persist_config off
        log {
                output file /var/log/caddy/error.log #错误日志的文件地址
                format console
                level ERROR
        }
        log log0 {
                output file /var/log/caddy/access.log #访问日志的文件地址
                format console
                include http.log.access.log0
        } #访问日志的输出配置。(选配)

        email [email protected] #修改为自己的电子邮箱。(选配)

        servers :80 { #与下边监听端口对应
                protocols h1 #仅开启 HTTP/1.1 server 支持
        }

        servers 127.0.0.1:7443 { #与下边本地监听端口对应
                …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by lxhao61
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants