Skip to content

A v2ray plugin for SSRPanel to sync users from database to v2ray, to log traffics/system info

Notifications You must be signed in to change notification settings

zhanggf2010/v2ray-ssrpanel-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

89c9c10 · Dec 7, 2018

History

10 Commits
Nov 30, 2018
Nov 30, 2018
Dec 7, 2018
Dec 7, 2018
Dec 7, 2018
Dec 2, 2018
Dec 2, 2018
Nov 30, 2018
Dec 7, 2018
Dec 7, 2018
Dec 2, 2018

Repository files navigation

a V2ray plugin for SSRPanel

Only one thing user should do is that setting up the database connection, without doing that user needn't do anything!

Features

  • Sync user from SSRPanel database to v2ray
  • Log user traffic

V2ray Configuration demo

{
  "log": {
    "loglevel": "debug"
  },
  "api": {
    "tag": "api",
    "services": [
      "HandlerService",
      "LoggerService",
      "StatsService"
    ]
  },
  "stats": {},
  "inbounds": [{
    "port": 10086,
    "protocol": "vmess",
    "tag": "proxy"
  },{
    "listen": "127.0.0.1",
    "port": 10085,
    "protocol": "dokodemo-door",
    "settings": {
      "address": "127.0.0.1"
    },
    "tag": "api"
  }],
  "outbounds": [{
    "protocol": "freedom"
  }],
  "routing": {
    "rules": [{
      "type": "field",
      "inboundTag": [ "api" ],
      "outboundTag": "api"
    }],
    "strategy": "rules"
  },
  "policy": {
    "levels": {
      "0": {
        "statsUserUplink": true,
        "statsUserDownlink": true
      }
    },
    "system": {
      "statsInboundUplink": true,
      "statsInboundDownlink": true
    }
  },


  "ssrpanel": {
    // Node id on your SSR Panel
    "nodeId": 1,
    // every N seconds
    "checkRate": 60,
    // traffic rate
    "trafficRate": 1.0,
    // gRPC address
    "gRPCAddr": "127.0.0.1:10085",
    // user config
    "user": {
      // inbound tag, which inbound you would like add user to
      "inboundTag": "proxy",
      "level": 0,
      "alterId": 16,
      "security": "none"
    },
    // db connection
    "mysql": {
      "host": "127.0.0.1",
      "port": 3306,
      "user": "root",
      "password": "ssrpanel",
      "dbname": "ssrpanel"
    }
  }



}

References

About

A v2ray plugin for SSRPanel to sync users from database to v2ray, to log traffics/system info

Resources

Stars

Watchers

Forks

Packages

No packages published