アクセス
- Web interface:
https://<server-ip> - Log in using the admin email and password defined during deployment.
- Admin credentials are stored in:
/root/seelf/.env
重要なファイルとディレクトリ
- アプリケーションディレクトリ:
/root/seelf/ - Environment file (credentials):
/root/seelf/.env - Docker Compose ファイル:
/root/seelf/compose.yml - Seelf persistent data:
/var/lib/docker/volumes/seelf_data/ - Seelf SSH data:
/var/lib/docker/volumes/seelf_ssh/ - Nginx サイト設定:
/etc/nginx/sites-available/seelf - Enabled Nginx site:
/etc/nginx/sites-enabled/seelf - TLS certificate:
/etc/nginx/ssl/fullchain.pem - TLS private key:
/etc/nginx/ssl/privkey.pem
サービス管理
コンテナの状態を確認する:
docker compose -f /root/seelf/compose.yml ps
再起動:
docker compose -f /root/seelf/compose.yml restart
ログを表示する:
docker compose -f /root/seelf/compose.yml logs -f
ドメインでのSSLの有効化
1. ドメインをサーバーのIPアドレスに設定してください。
2. Nginx設定を編集し、両方を置換する server_name <IP>; あなたのドメインで (<your-domain>HTTP(ポート80)およびHTTPS(ポート443)ブロックの両方に対して:
vim /etc/nginx/sites-available/seelf
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/seelf
# 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