アクセス
- ブラウザで Fusion を開きます:
https://<SERVER_IP> - デフォルトで自己署名の TLS 証明書がインストールされているため、初回アクセス時にブラウザでセキュリティ警告が表示されます。続行して進んでください。
ログイン
- Fusion はパスワードのみの認証を使用します(ユーザー名なし)。
- パスワード: 次の場所に保存されています
/root/fusion/.envasFUSION_PASSWORD
重要なファイルとディレクトリ
- インストールパス:
/root/fusion - Compose ファイル:
/root/fusion/docker-compose.yml - 環境ファイル:
/root/fusion/.env - データディレクトリ:
/root/fusion/data - Nginx 設定:
/etc/nginx/sites-available/fusion - SSLサーティフィケート:
/etc/nginx/ssl/fusion.crt - SSL 秘密鍵:
/etc/nginx/ssl/fusion.key
サービス管理
実行中のコンテナを確認する:
docker compose -f /root/fusion/docker-compose.yml ps
Fusion を再起動します:
docker compose -f /root/fusion/docker-compose.yml restart
ログを表示:
cd /root/fusion && docker compose logs -f
Fusion を停止します:
docker compose -f /root/fusion/docker-compose.yml stop
Fusion を起動します:
docker compose -f /root/fusion/docker-compose.yml start
Fusion を再作成します:
docker compose -f /root/fusion/docker-compose.yml up -d
ドメインで HTTPS を有効にする
1. ドメインをサーバーIPに向ける。
2. 編集 /etc/nginx/sites-available/fusion そして両方を置き換えます server_name _; ディレクティブを自分のドメインに(例: server_name yourdomain.com;).
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. 次を編集します /etc/nginx/sites-available/fusion そして次を更新します ssl_certificate と ssl_certificate_key ディレクティブを、自分の Let's Encrypt 証明書を使用するように更新します。
Before:
ssl_certificate /etc/nginx/ssl/fusion.crt;
ssl_certificate_key /etc/nginx/ssl/fusion.key;
After:
ssl_certificate /etc/letsencrypt/live/yourdomain.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/yourdomain.com/privkey.pem;
6. 変更を適用するために Nginx を再読み込みします:
systemctl reload nginx
7. 次を編集します /root/fusion/.env を編集して次を更新: FUSION_CORS_ALLOWED_ORIGINS から https://<SERVER_IP> 自分のドメインに(例: https://yourdomain.com).
8. サービスを再作成:
cd /root/fusion && docker compose up -d
9. 次で Fusion にアクセスします https://yourdomain.com.