Truy cập
- It might take some time to come up and start working properly without any issues.
- Giao diện người dùng web:
https://<server-ip> - Chấp nhận cảnh báo SSL (chứng chỉ tự ký).
- Log in using the admin username and password you provided during installation.
- Thông tin đăng nhập được lưu trữ tại:
/root/.cloudzy-creds
Các tập tin và thư mục quan trọng
- Thư mục gốc của ứng dụng:
/root/dashy/ - Dashy configuration file:
/root/dashy/config.yml - Tệp Docker Compose:
/root/dashy/docker-compose.yml - Stored admin credentials (read-only):
/root/.cloudzy-creds - Cấu hình trang web Nginx:
/etc/nginx/sites-available/dashy - Đã kích hoạt trang web Nginx:
/etc/nginx/sites-enabled/dashy - Chứng chỉ TLS:
/etc/nginx/ssl/fullchain.pem - Khóa riêng TLS:
/etc/nginx/ssl/privkey.pem
Quản lý dịch vụ
Kiểm tra trạng thái container:
docker compose -f /root/dashy/docker-compose.yml ps
Khởi động lại:
docker compose -f /root/dashy/docker-compose.yml restart
Xem nhật ký:
docker compose -f /root/dashy/docker-compose.yml logs -f
Kích hoạt SSL với tên miền
1. Trỏ tên miền của bạn đến địa chỉ IP của máy chủ.
2. Chỉnh sửa cấu hình Nginx và thay thế cả hai server_name <IP>; với tên miền của bạn (<your-domain>) cho cả khối HTTP (cổng 80) và HTTPS (cổng 443):
vim /etc/nginx/sites-available/dashy
3. Cài đặt Certbot:
apt install -y certbot python3-certbot-nginx
4. Chạy lệnh sau để tạo chứng chỉ Let's Encrypt hợp lệ:
certbot certonly --nginx --non-interactive --agree-tos --email [email protected] -d yourdomain.com
5. Thay thế đường dẫn SSL trong cấu hình Nginx:
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. Khởi động lại Nginx để áp dụng các thay đổi:
systemctl restart nginx
7. Mở trình duyệt của bạn và truy cập: https://yourdomain.com
