群晖Docker部署Dashy---功能强大的导航页

群晖Docker部署Dashy---功能强大的导航页

在线导航页、导航页插件都需要先联网再配置,环境跳过。。。

之前用过heimdall,后来nginx配合静态页面。。。

Dashy很强大,作者一直在优化,配置内容可以在web页面进行修改,复杂的需要通过conf.xml文件进行配置。

dashy 除了添加应用,还能添加应用状态灯(检测链接状态,没有在运行,就显示红灯),且支持的很多小部件时间、日期、天气、CPU利用率、硬盘使用情况、网络使用情况、汇率、股价、新闻头条、iframe等,(作者是国外的,小部件调用的都是国外的,插件数据偶尔会延迟,所以我自己做了php和html,通过iframe调用其中CPU利用率、硬盘使用情况、网络使用情况,需要配合glances使用

而我最喜欢的一点就是“配置”,备份好配置文件,可以随意迁移。

Dashy项目地址:https://github.com/Lissy93/dashy

Dashy插件介绍:https://dashy.to/docs/widgets

—————————————————————————————————–

图中,我只使用了基础的添加应用和iframe插件功能

分享下我的iframe(可以直接调用)

时钟天气:http://ffing.gitee.io/clock

必应每图:https://blog.ffing.cn/bing.php

百度疫情(自己更换城市):https://voice.baidu.com/act/newpneumonia/newpneumonia/?from=osari_aladin_banner&city=河南-郑州

其他的iframe是我根据自己需求做的php和html,如硬件信息、日志文件

———————————————————————————————————

  • 群晖安装docker
  • Docker添加Dashy
  • 配置Dashy

一,群晖安装docker

通过套件中心安装docker,操作简单不详细描述

https://qnimg.ffing.cn/wp-content/uploads/2022/11/image-27.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0

二,Docker添加Dashy

1.下载Dashy映像

打开Docker—》注册表—》lissy93/dashy—》右键或双击进行下载—》最新版‘latest’

https://qnimg.ffing.cn/wp-content/uploads/2022/11/image-28.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0

2.安装Dashy映像

从Docker页可以看到的配置信息

https://qnimg.ffing.cn/wp-content/uploads/2022/11/image-29.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0

端口:80

config文件:/app/public/conf.yml

所以,在群晖映射是也需要映射端口和配置文件

打开Docker—》映像—》双击dashy映像进行安装配置:配置映射端口和映射目录

https://qnimg.ffing.cn/wp-content/uploads/2022/11/image-32.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0
https://qnimg.ffing.cn/wp-content/uploads/2022/11/image-33.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0
https://qnimg.ffing.cn/wp-content/uploads/2022/11/image-34.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0

三,配置Dashy

1.添加conf.yml文件

上传我的yml文件,建议使用yml编辑器后上传文件(yml格式错误,会导致报错,无法启动)

https://qnimg.ffing.cn/wp-content/uploads/2022/11/image-35.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0

下面是我自己的yml文件,可保存后自行修改

appConfig:
  webSearch: 
    searchEngine: 'duckduckgo'
    openingMethod: 'newtab'
    searchBangs:
      /r: reddit
      /w: wikipedia
      /b: http://www.baidu.com/s?ie=UTF-8&wd=

  theme: colorful
  layout: auto
  iconSize: medium
  language: cn
pageInfo:
  title: FFing-Tab
  description: 学无止境~
  navLinks:
    - title: B站
      path: https://space.bilibili.com/376172153
      target: newtab
    - title: YouTube
      path: https://www.youtube.com/
      target: newtab
sections:

  - name: null
    icon: null
    widgets:
      - type: iframe
        options:
          url: http://ffing.gitee.io/clock/
          frameHeight: 100
        id: 0_2254_clock
    displayData:
      sortBy: default
      rows: 1
      cols: 2
      collapsed: false
      hideForGuests: false

  - name: null
    icon: null
    widgets:
      - type: iframe
        options:
          url: https://voice.baidu.com/act/newpneumonia/newpneumonia/?from=osari_aladin_banner&city=%E6%B2%B3%E5%8D%97-%E9%83%91%E5%B7%9E
          frameHeight: 800
        id: 0_2314_iframe
    displayData:
      sortBy: default
      rows: 4
      cols: 1
      collapsed: false
      hideForGuests: false

  - name: 
    icon: 
    displayData:
      rows: 4
    widgets:
      - type: image
        options:
          imagePath: https://blog.ffing.cn/bing.php
      - type: iframe
        options:
          url: http://192.168.68.253:888/
      - type: iframe
        options:
          url: http://192.168.68.253:89/
          frameHeight: 320


  - name: Home Server
    icon: http://ffing.gitee.io/img/png/server.png
    items:
      - title: Esxi
        description: null
        icon: http://ffing.gitee.io/img/png/esxi.png
        url: http://192.168.68.250
        target: newtab

      - title: Rout-主
        description: null
        url: http://192.168.68.251
        icon: http://ffing.gitee.io/img/png/ikuai.png
        statusCheck: true
      - title: Route-从
        description: null
        provider: Dashy.to
        icon: http://ffing.gitee.io/img/png/route.png
        url: http://192.168.68.252
        statusCheck: true
      - title: 群晖
        description: null
        url: http://192.168.68.253:5000
        icon: http://ffing.gitee.io/img/png/dsm.png
        statusCheck: true
      - title: Plex
        description: null
        icon: http://ffing.gitee.io/img/png/video.png
        url: http://192.168.68.101:32400/web/index.html
        statusCheck: true
      - title: WXY
        description: null
        icon: http://ffing.gitee.io/img/png/wxy.png
        url: http://192.168.68.241:8080
        target: newtab
        statusCheck: true
      - title: NGO-Down
        description: null
        icon: http://ffing.gitee.io/img/png/ngo.png
        url: http://192.168.68.200:23000
        target: newtab        
        statusCheck: true

      - title: SMB
        description: null
        url: smb://192.168.68.253
        icon: http://ffing.gitee.io/img/png/smb.png
        target: sametab

      - title: FTP
        description: null
        url: ftp://192.168.68.253
        icon: http://ffing.gitee.io/img/png/ftp.png
        target: sametab





      - title: Esxi-Win10
        description: null
        provider: Dashy.to
        icon: http://ffing.gitee.io/img/png/windows.png
        url: vmrc://192.168.68.250/?moid=62
        target: sametab

      - title: Esxi-UOS
        icon: http://ffing.gitee.io/img/png/uos.png
        url: vmrc://192.168.68.250/?moid=55
        target: sametab

      - title: Esxi-Kylin
        icon: http://ffing.gitee.io/img/png/kylin.png
        url: vmrc://192.168.68.250/?moid=56
        target: sametab
    displayData:
      sortBy: default
      rows: 1
      cols: 2
      collapsed: false
      hideForGuests: false


  - name: Link
    icon: http://ffing.gitee.io/img/png/link.png
    items:
      - title: 百度
        description: null
        icon: http://ffing.gitee.io/img/png/baidu.png
        url: http://www.baidu.com
        target: null
        id: 0_398_
      - title: Google
        description: null
        url: http://www.google.com
        icon: http://ffing.gitee.io/img/png/google.png
        id: 1_398_google
      - title: Github
        description: null
        provider: null
        icon: http://ffing.gitee.io/img/png/github.png
        url: http://www.github.com
        id: 2_398_github
      - title: Gitee
        description: null
        url: http://www.gitee.com
        icon: http://ffing.gitee.io/img/png/gitee.png
        id: 3_398_gitee
      - title: 阿里云
        description: null
        url: http://www.aliyun.com
        icon: http://ffing.gitee.io/img/png/aliyun.png
        id: 4_398_
      - title: 腾讯云
        description: null
        url: https://cloud.tencent.com/
        icon: http://ffing.gitee.io/img/png/tengxunyun.png
        id: 5_398_
      - title: FFing
        description: null
        icon: http://ffing.gitee.io/img/png/ffing.png
        url: http://blog.ffing.cn
        target: newtab
        id: 6_398_ffing
      - title: 云盘
        description: null
        url: http://pan.ffing.cn
        icon: http://ffing.gitee.io/img/png/cloud.png
        id: 7_398_
      - title: Mac下载站
        description: null
        provider: Dashy.to
        icon: http://ffing.gitee.io/img/png/mac1.png
        url: https://xclient.info/
        id: 8_398_mac
      - title: CPU天梯图
        description: null
        url: https://www.mydrivers.com/zhuanti/tianti/cpu/
        icon: http://ffing.gitee.io/img/png/ie.png
        id: 9_398_cpu
    displayData:
      sortBy: default
      rows: 1
      cols: 2
      collapsed: false
      hideForGuests: false

2.启动Dashy

第一次启动Dashy构建时间比较长,需要等待2~3分钟左右。

https://qnimg.ffing.cn/wp-content/uploads/2022/11/image-36.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0
https://qnimg.ffing.cn/wp-content/uploads/2022/11/image-37.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0

3.打开dashy

http://群晖ip:映射端口

映射端口,在第二步安装过程中映射的端口,如果忘记可点开dashy容器查看映射信息!!!

https://qnimg.ffing.cn/wp-content/uploads/2022/11/image-38.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0

注:我的截图使用的域名home,是通过爱快做了dns

good good study, day day up!

发表评论

textsms
account_circle
email

群晖Docker部署Dashy---功能强大的导航页
在线导航页、导航页插件都需要先联网再配置,环境跳过。。。 之前用过heimdall,后来nginx配合静态页面。。。 Dashy很强大,作者一直在优化,配置内容可以在web页面进行修改,复杂…
扫描二维码继续阅读
2022-11-27