Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Docker 部署clash的方法,不一定对,但是目前能用

Featured Replies

最近v2raya不知道为啥出问题了,导致插件更新不了,超级不方便,所以想部署clash,但是找了好久的资料都没找到,碰巧部署成功了,所以分享给大家,我也可以自己备忘。

Docker 部署clash的方法,不一定对,但是目前能用,希望以后大家可以改进

  1. 添加容器

    存储库:metacubex/mihomo:latest

    WebUI:http://[IP]:[PORT:9090]/ui

    网络类型:bridge

    Config:/mnt/user/appdata/clash

     Proxy Port:7890

    Web UI:9090代理

  2. 设置yaml文件,进入程序根目录,打开config.yaml编辑,把下面的复制进去,设置好自己的订阅链接,要注意设置代理代理服务设置的时候,自己的服务器地址:7890

    external-controller: 0.0.0.0:9090

    external-ui: ui

    # 混合端口(HTTP + SOCKS5)

    mixed-port: 7890

    # 允许局域网连接

    allow-lan: true

    bind-address: '*'

    # 模式:rule(规则)、global(全局)、direct(直连)

    mode: rule

    # 日志级别

    log-level: info

    # ----------------------------------------------------

    # 1. 订阅链接配置

    # ----------------------------------------------------

    proxy-providers:

    MySubscription:

    type: http

    url: "填自己的订阅连接"

    interval: 86400 # 自动更新间隔时间(秒),86400秒 = 24小时

    path: ./providers/subscription.yaml

    health-check:

    enable: true

    interval: 600

    url: http://www.gstatic.com/generate_204

    # ----------------------------------------------------

    # 2. 节点组配置

    # ----------------------------------------------------

    proxy-groups:

    - name: 节点选择

    type: select

    use:

    - MySubscription # 绑定上面 proxy-providers 的名字

    proxies:

    - DIRECT # 保留直连选项

    # ----------------------------------------------------

    # 3. 分流规则(只保留一个 rules: 字段)

    # ----------------------------------------------------

    rules:

    - GEOIP,LAN,DIRECT # 1. 局域网/内网流量直连

    - GEOIP,CN,DIRECT # 2. 国内流量直连

    - MATCH,节点选择 # 3. 其他所有流量走代理

  3. 安装ui界面,github里找metacubexd 然后Releases里下载结尾是(.tgz
    )的文件

    下载后解压文件,进入根目录,创建一个ui文件夹,把解压的文件全部都复制进去,一个都不能少,所有文件全都必须在ui文件夹下,不能在其他文件夹下

  4. 启动clash然后右键打开web就好了

config.yaml

  • Author

还有个使用Github Action将国外的Docker镜像转存到阿里云私有仓库地方法,github搜docker_image_pusher

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.