某项服务配置备份

摸索了几天的配置,在此备份一下,看得懂的都知道什么意思,知道什么用的参考下就行,不要说出来。

后端:

{
  "inbound": {
    "listen": "67.21.xxx.xxx",
    "port": 31000,
    "protocol": "vmess",
    "settings": {
      "clients": [
        {
          "alterId": 64,
          "id": "d565fb19-6f33-40e3-xxxxxxx-xxxxxxx",
          "level": 1
        }
      ]
    }
  },
  "inboundDetour": [
    {
      "port": 8090,
      "protocol": "SS",
      "settings": {
        "method": "chacha20",
        "ota": false,
        "password": "xxxxxxxxxxxxx"
      }
    },
    {
      "listen": "127.0.0.1",
      "port": 10000,
      "protocol": "vmess",
      "settings": {
        "clients": [
          {
            "alterId": 64,
            "id": "b831381d-xxxxx-xxxxxx-xxxxxx-xxxxx"
          }
        ]
      },
      "streamSettings": {
        "network": "ws",
        "wsSettings": {
          "connectionReuse": false,
          "path": "/ws"
        }
      }
    }
  ],
  "log": {
    "access": "/var/log/v2ray/access.log",
    "error": "/var/log/v2ray/error.log",
    "loglevel": "warning"
  },
  "outbound": {
    "protocol": "freedom",
    "settings": {}
  },
  "outboundDetour": [
    {
      "protocol": "blackhole",
      "settings": {},
      "tag": "blocked"
    }
  ],
  "routing": {
    "settings": {
      "rules": [
        {
          "ip": [
            "0.0.0.0/8",
            "10.0.0.0/8",
            "100.64.0.0/10",
            "127.0.0.0/8",
            "169.254.0.0/16",
            "172.16.0.0/12",
            "192.0.0.0/24",
            "192.0.2.0/24",
            "192.168.0.0/16",
            "198.18.0.0/15",
            "198.51.100.0/24",
            "203.0.113.0/24",
            "::1/128",
            "fc00::/7",
            "fe80::/10"
          ],
          "outboundTag": "blocked",
          "type": "field"
        }
      ]
    },
    "strategy": "rules"
  }
}

Nginx配置:

server {
        listen  443 ssl;
        ssl on;
        ssl_certificate       /var/xxxx_ssl/xxxx-ecc.crt;
        ssl_certificate_key   /var/xxxx_ssl/xxxx-ecc.key;
        ssl_protocols         TLSv1 TLSv1.1 TLSv1.2;
        ssl_ciphers           HIGH:!aNULL:!MD5;
        server_name           xxx.com;
        location /ws {
                proxy_redirect off;
                proxy_pass http://127.0.0.1:10000;
                proxy_http_version 1.1;
                proxy_set_header Upgrade $http_upgrade;
                proxy_set_header Connection "upgrade";
                proxy_set_header Host $http_host;
        }
        location / {
                root   /var/www/www;
                index  index.html index.htm;
        }

}

备份一下,以后要用方便查找。

发表评论

电子邮件地址不会被公开。 必填项已用*标注