Giter Club home page Giter Club logo

externalconfig's Introduction

ExternalConfig

使用说明

  • 项目中使用的python3路径为 /usr/local/bin/python3,请自行安装

  • 生成配置的路径为~/Documents/Surge/config

  • 请将ss-local文件复制到~/Documents/Surge/config目录下

  • 请将v2rayCore相关文件复制到~/Documents/Surge/config/v2raycore

  • ~/Documents/Surge/config/external.txtSurge中可用的SSR External配置文件,如配置参考所示

  • ~/Documents/Surge/config/v2rayExternal.txtSurge中可用的V2RAY External配置文件,如配置参考所示

  • 关于ss-local(此处指的是SSR)ShadowsocksX-NG-R8安装后在~/Library/Application Support/ShadowsocksX-NG/ss-local-2.5.6.9.static这个路径下可找到

  • 参考:https://community.nssurge.com/d/3-external-proxy-provider 启动后可在/tmp路径看到log

  • v2ray同理 这里 https://github.com/v2ray/v2ray-core/releases 下载使用

  • Python脚本使用

    #进入项目中脚本文件夹
    cd ExternalConfig/ExternalConfig/script
    #执行如下脚本在指定目录生成配置
    python3 RSS.py -s `此外为你的SSR订阅地址` -p 端口号
    python3 v2json.py -s `此外为你的V2RAY订阅地址` -p 端口号
    #示例:
    script git:(master) ✗ python3 RSS.py -s https://www.xxxxxx.com -p 19522 
    script git:(master) ✗ python3 v2json.py -s https://www.xxxxxx.com -p 19829

配置参考:

  • 示例:
SSR东京2上海 = external, exec = "/Users/你的用户名/Documents/Surge/config/ss-local", local-port = 19522, args = "-c", args = "/Users/你的用户名/Documents/Surge/config/SSRJson/SSR东京2上海.json", addresses = "服务器IP"
香港5v2ray = external, exec = "/Users/你的用户名/Documents/Surge/config/v2ray-core/v2ray", local-port = 19829, args = "--config=/Users/你的用户名/Documents/Surge/config/vmessJson/香港5v2ray.json", addresses = "服务器IP"

注意:上文配置中 local-port要与下文json配置中的local-port保持一致

  • SSR东京2上海.json
{
"local_address" : "127.0.0.1",
"local_port" : 19522,
"server" : "服务器地址",
"server_port" : 8888,
"method" : "aes-256-cfb",
"protocol" : "auth_chain_a",
"protocol_param" : "",
"timeout" : 60,
"obfs" : "tls1.2_ticket_auth",
"obfs_param" : "cloudflare.com",
"password" : "你的密码"
}
  • 香港5v2ray.json
{
"log": {
  "loglevel": "info"
},
"inbound": {
  "listen": "127.0.0.1",
  "port": 19829,
  "protocol": "socks",
  "settings": {
      "auth": "noauth",
      "udp": true,
      "ip": "127.0.0.1"
  }
},
"outbound": {
  "protocol": "vmess",
  "settings": {
      "vnext": [
          {
              "address": "你的服务器",
              "port": 8888,
              "users": [
                  {
                      "id": "你的id",
                      "alterId": 2
                  }
              ]
          }
      ]
  }
}
}

注:v2rayinboud中配置的port需要与配置文件中的local-port一致,更多配置请参考[v2ray官网](https://www.v2ray.com/)

  • v2ray转换脚本暂只支持自用机场 -_- 有需要请自行修改脚本

externalconfig's People

Contributors

whojave avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.