Coder Social home page Coder Social logo

singboxwebondocker's Introduction

Welcome to singboxWebOnDocker

Language / 语言

We have noticed the absence of a Sing-Box agent deployable on Docker with a web panel for control. Hence, singboxWebOnDocker has emerged.

Deployment

To deploy singboxWebOnDocker, follow these steps:

  1. Clone the repository:

    git clone https://github.com/RedSTARO/singboxWebOnDocker.git ; cd singboxWebOnDocker
  2. Build the Docker image:

    sudo docker build -t singbox_web_on_docker .
  3. Run the Docker container:

    sudo docker run -p 5000:5000 -p 9090:9090 -p 2080:2080 singbox_web_on_docker

Usage

  1. Access the web panel by navigating to http://localhost:5000.

  2. Enter the subscription link in the provided input box on port 5000.

  3. Wait for automatic redirection to the panel at http://localhost:9090. If no redirection occurs within 10 seconds, check the logs for any issues.

  4. Configure your client to point the proxy address to localhost:2080 for mixed traffic.

Thanks

singboxwebondocker's People

Contributors

toperlock avatar gg4924 avatar redstaro avatar izumichan16 avatar

Watchers

 avatar

singboxwebondocker's Issues

实际上官方已经提供了docker镜像,通过配置文件即可开放端口以及web界面控制

其实也不能算是个问题,我自己也有时重复造轮子,其实这个项目挺好的,可是我还是想说,官方有轮子了,希望别生气。唉
镜像地址:https://sing-box.sagernet.org/installation/docker/
在配置文件中加入以下内容可以实现端口 control/7894 UI 控制,但是唯一的问题是,在代理启动的时候,控制界面访问超时

{
  "experimental": {
    "clash_api": {
      "external_controller": ":7894",
      "external_ui": "ui",
      "secret": "",
      "external_ui_download_url": "https://mirror.ghproxy.com/https://github.com/MetaCubeX/Yacd-meta/archive/gh-pages.zip",
      "external_ui_download_detour": "direct",
      "default_mode": "rule"
    },
    "cache_file": {
      "enabled": true,
      "store_fakeip": false
    }
  }
}

在配置中加入入站配置可以实现端口开放 http/https/7891 socks/7892 mixed/7893,并通过docker映射即可,

{
   "inbounds": [
      {
        "type": "tun",
        "inet4_address": "172.19.0.1/30",
        "mtu": 9000,
        "auto_route": true,
        "strict_route": false,
        "sniff": true
      },
      {
        "type": "http",
        "listen": "0.0.0.0",
        "listen_port": 7891,
        "sniff": true,
        "users": []
      },
      {
        "type": "socks",
        "listen": "0.0.0.0",
        "listen_port": 7892,
        "sniff": true,
        "users": []
      },
      {
        "type": "mixed",
        "listen": "0.0.0.0",
        "listen_port": 7893,
        "sniff": true,
        "users": []
      }
    ]
}

可是,说实话,json的配置看起来还是很复杂,yaml很直观,sing-box一直在更新配置方案,我却觉得自己有些跟不上了,如果是固定格式的话就好了,也不是特别想乱动配置文件的呀,😮‍💨

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.