アクセス
- 問題なく起動して適切に動作し始めるまでには、しばらく時間がかかる場合があります。
- ウェブUI:
https://<server-ip> - SSL警告 (自己署名証明書) を承認。
- インストール時に指定した管理者ユーザー名とパスワードを使用してログインします。
- ログイン認証情報は次の場所に保存されます。
/root/.cloudzy-creds
重要なファイルとディレクトリ
- アプリケーションルート:
/root/dashy/ - Dashy 構成ファイル:
/root/dashy/config.yml - Docker Composeファイル:
/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