Access
- Web UI:
https://<server-ip> - SSL の警告を承認する(自己署名証明書)。
- インストール時に設定した管理者のユーザー名とパスワードでログインしてください。
- ログイン情報の保存先:
/root/traggo/.env
主要ファイルとディレクトリ
- Application root:
/root/traggo/ - Environment variables:
/root/traggo/.env - Docker Compose ファイル:
/root/traggo/docker-compose.yml - Traggo データディレクトリ:
/root/traggo/traggodata/ - Nginx サイト設定:
/etc/nginx/sites-available/traggo - 有効化済みの Nginx サイト:
/etc/nginx/sites-enabled/traggo - TLS certificate:
/etc/nginx/ssl/fullchain.pem - TLS 秘密鍵:
/etc/nginx/ssl/privkey.pem
Service Management
コンテナの状態を確認:
docker compose -f /root/traggo/docker-compose.yml ps
Restart:
docker compose -f /root/traggo/docker-compose.yml restart
View logs:
docker compose -f /root/traggo/docker-compose.yml logs -f
ドメインを使った SSL の有効化
1. ドメインをサーバーのIPアドレスに向けてください。
2. Nginx の設定ファイルを開き、以下の両方を置き換えてください server_name <IP>; ドメイン(<your-domain>) は HTTP (ポート 80) と HTTPS (ポート 443) の両ブロックに適用されます:
vim /etc/nginx/sites-available/traggo
3. Install 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/traggo
# 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