Pogbag
V2EX  ›  问与答

关于群晖自动内外网切换和 DOCKER 自动更新的问题请教

  •  
  •   Pogbag · Aug 17, 2021 · 707 views
    This topic created in 1772 days ago, the information mentioned may be changed or developed.
    1,NAS 已经开通了 DDNS 外网访问,我想在内网通过域名:端口访问 NAS,科学上网软件把我的域名识别为外国流量,每次都会转一圈,尝试修改过策略文件,但是每次订阅更新就覆盖掉,很烦。在路由器加了一条 host 也无效。

    2,如何自动更新 NAS 上的 docker 应用,目前是手动挨个更新。

    谢谢各位!
    4 replies    2021-08-17 11:12:45 +08:00
    Kilerd
        1
    Kilerd  
       Aug 17, 2021   ❤️ 2
    第一个问题 应该就是你的路由写得有问题(

    第二个问题 https://github.com/containrrr/watchtower
    Pogbag
        2
    Pogbag  
    OP
       Aug 17, 2021
    @Kilerd watchtower 里面的这条命令是在计划任务里面执行吗?
    $ docker run -d \
    --name watchtower \
    -v /var/run/docker.sock:/var/run/docker.sock \
    containrrr/watchtower
    totoro625
        3
    totoro625  
       Aug 17, 2021   ❤️ 1
    第一条 可以只更新服务器部分
    clash 用 proxy-providers
    ```
    proxy-providers:
    SUB:
    type: http
    url: https://examp.com/examp.yml
    interval: 7200
    path: ./Proxy/SUB.yaml
    health-check:
    enable: true
    interval: 300
    url: http://www.gstatic.com/generate_204
    proxy-groups:
    - name: SUB-s
    use:
    - SUB
    type: select
    url: http://www.gstatic.com/generate_204
    interval: 600
    ```

    surge 用 policy-path
    ```
    [Proxy Group]
    SUB = select, policy-path=https://examp.com/examp.yml, update-interval=21600
    ```
    Pogbag
        4
    Pogbag  
    OP
       Aug 17, 2021
    @totoro625 感谢
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   892 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 21:20 · PVG 05:20 · LAX 14:20 · JFK 17:20
    ♥ Do have faith in what you're doing.