Dashy

一个自托管的仪表盘,用于管理、监控和访问您所有的服务。

访问

  • It might take some time to come up and start working properly without any issues.
  • Web UI: https://<server-ip>
  • 接受 SSL 警告(自签名证书)。
  • Log in using the admin username and password you provided during installation.
  • Login credentials are stored in: /root/.cloudzy-creds

重要文件和目录

  • 应用程序根目录: /root/dashy/
  • Dashy configuration file: /root/dashy/config.yml
  • Docker Compose 文件: /root/dashy/docker-compose.yml
  • Stored admin credentials (read-only): /root/.cloudzy-creds
  • Nginx 站点配置: /etc/nginx/sites-available/dashy
  • Enabled Nginx site: /etc/nginx/sites-enabled/dashy
  • TLS certificate: /etc/nginx/ssl/fullchain.pem
  • TLS private key: /etc/nginx/ssl/privkey.pem

服务管理

检查集装箱状态:

docker compose -f /root/dashy/docker-compose.yml ps

重启:

docker compose -f /root/dashy/docker-compose.yml restart

查看日志:

docker compose -f /root/dashy/docker-compose.yml logs -f

为域名启用SSL

1. 将您的域名指向服务器IP地址。

2. 编辑 Nginx 配置文件并替换两处 server_name <IP>; 使用您的域名 (<your-domain>) 同时适用于 HTTP(端口 80)和 HTTPS(端口 443)的封堵:

vim /etc/nginx/sites-available/dashy

3. 安装 Certbot:

apt install -y certbot python3-certbot-nginx

4. 运行以下命令以生成有效的 Let’s Encrypt 证书:

certbot certonly --nginx --non-interactive --agree-tos --email [email protected] -d yourdomain.com

5. 在 Nginx 配置中替换 SSL 路径:

vim /etc/apache2/sites-available/dashy
# Before:
    # ssl_certificate /etc/nginx/ssl/fullchain.pem;
    # ssl_certificate_key /etc/nginx/ssl/privkey.pem;
# After:
    # ssl_certificate /etc/letsencrypt/live/yourdomain.com/fullchain.pem;
    # ssl_certificate_key /etc/letsencrypt/live/yourdomain.com/privkey.pem;

6. 重启 Nginx 以应用更改:

systemctl restart nginx

7. 打开浏览器并访问: https://yourdomain.com

申请详情