アクセス
- 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
重要なファイルとディレクトリ
- Application root:
/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. ブラウザを開き、次のURLにアクセスしてください: https://yourdomain.com
