Rallyにアクセス
- ブラウザを開いて次にアクセス:
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. ブラウザを開いて次にアクセス: https://yourdomain.com