Skip to content

求助Xray(M+F+H+K+G+B+A)+Caddy(N)的caddy json怎么加入反代端口的内容 #242

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

You must be logged in to vote

我猜想如下共用 443 端口配置应完美满足你的需求:

{
  "admin": {
    "disabled": true, //禁用 admin API。(选配)
    "config": {
      "persist": false
    }
  },
  "logging": {
    "logs": {
      "default": {
        "writer": {
          "output": "file",
          "filename": "/var/log/caddy/error.log" //错误日志的文件地址
        },
        "encoder": {
          "format": "console"
        },
        "level": "ERROR",
        "exclude": ["http.log.access.log0"] //启用访问日志需要的配置,否则必须删除。
      },
      "log0": {
        "writer": {
          "output": "file",
          "filename": "/var/log/caddy/access.log" //访问日志的文件地址
        },
        "encoder": {
          "format": "console"
        },
        "include": ["http.log.acc…

Replies: 6 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by idavailable
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