Rallyにアクセス
- ブラウザを開いて次の URL にアクセスしてください:
https://<SERVER-IP>/ - SSL の警告を承認する(自己署名証明書)。
メール(SMTP)設定
このサーバーで SMTP 接続が許可されていることを確認してください(SMTP アクセスの有効化をリクエストしてください)。
SMTP の設定は以下に保存されています: /root/rallly/config.env
SMTP またはメール設定を変更するには:
- ファイルを編集してください:
nano /root/rallly/config.env - 変更を適用
cd/root/rallly && docker compose up -d
管理者アカウントの作成
- デプロイ時に設定した管理者メールアドレスでサインアップしてください。
- ログイン後、次のページを開いてください:
https://<SERVER-IP>/control-panel - メールアドレスが一致した場合、
INITIAL_ADMIN_EMAILというボタンが表示されます:Make me an admin - クリックすると管理者になれます。
- 設定を管理したり、新規ユーザーの登録を無効にしたりできます。
主要ファイルとディレクトリ
- アプリケーションのメインディレクトリ:
/root/rallly - アプリケーション環境の設定ファイル:
/root/rallly/config.env - Docker Compose 設定:
/root/rallly/docker-compose.yml - PostgreSQL の永続データ:
/var/lib/docker/volumes/rallly_db-data - Nginx設定:
/etc/nginx/sites-available/rallly.conf - SSL証明書:
/etc/nginx/ssl/
サービスの管理
コンテナの状態を確認:
docker compose -f /root/rallly/docker-compose.yml ps
Rallly を再起動:
docker compose -f /root/rallly/docker-compose.yml restart
ログを表示:
docker compose -f /root/rallly/docker-compose.yml logs -f
ドメインを使った SSL の有効化
1. ドメインをサーバーのIPアドレスに向けてください。
2. ファイルを編集 /root/rallly/config.env ファイルでドメイン名を設定します: NEXT_PUBLIC_BASE_URL=https://your.domain.com
3. サービスを再作成する:
cd /root/rallly/
docker compose up -d
4. Nginx の設定ファイルを編集し、両方の server_name <IP>; ドメイン(<your-domain>) は HTTP (ポート 80) と HTTPS (ポート 443) の両ブロックに適用されます:
vim /etc/nginx/sites-available/rallly.conf
5. Certbotをインストールします:
apt install -y certbot python3-certbot-nginx
6. 以下のコマンドを実行して、有効な Let's Encrypt 証明書を生成します:
certbot certonly --nginx --non-interactive --agree-tos --email [email protected] -d yourdomain.com
7. Nginx 設定(TLS セクション)の SSL パスを置き換えます:
vim /etc/nginx/sites-available/rallly.conf
# 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;
8. Nginx を再起動して変更を反映します:
systemctl restart nginx
9. ブラウザを開き、次のURLにアクセスします: https://yourdomain.com