使用权
- 可能需要一些时间才能出现并开始正常工作而不会出现任何问题。
- 网页用户界面:
https://<server-ip> - 接受 SSL 警告(自签名证书)。
- 使用您在安装过程中提供的管理员用户名和密码登录。
- 登录凭据存储在:
/root/.cloudzy-creds
重要文件和目录
- 应用程序根:
/root/dashy/ - 达西配置文件:
/root/dashy/config.yml - Docker 撰写文件:
/root/dashy/docker-compose.yml - 存储的管理员凭据(只读):
/root/.cloudzy-creds - Nginx站点配置:
/etc/nginx/sites-available/dashy - 启用 Nginx 站点:
/etc/nginx/sites-enabled/dashy - TLS 证书:
/etc/nginx/ssl/fullchain.pem - TLS 私钥:
/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