ToolJet にアクセス
- 訪問:
https://<SERVER-IP>/ - SSL警告 (自己署名証明書) を承認。
- 初回アクセス時に、ToolJet が最初の管理者アカウントの作成を促します。
重要なファイルとディレクトリ
- ToolJet メインインストールディレクトリ:
/root/tooljet - 環境変数(データベース、シークレット、アプリ設定):
/root/tooljet/.env - Docker Compose 設定:
/root/tooljet/docker-compose.yaml - PostgreSQL の永続データ:
/root/tooljet/postgres_data - Nginx TLS 証明書(自己署名):
/etc/nginx/ssl/ - Nginx サイト設定:
/etc/nginx/sites-available/tooljet
ドメインでSSLを有効化する
1. ドメインをサーバーIPに向ける。
2. ファイルを編集 /root/tooljet/.env ファイルでドメイン名を設定します: TOOLJET_HOST=https://your.domain.com
3. サービスを再作成する:
cd /root/tooljet/
docker compose up -d
4. Nginx の設定ファイルを編集し、両方の server_name <IP>; あなたのドメイン (<your-domain>) をHTTP (ポート80) とHTTPS (ポート443) の両方のブロックに設定:
vim /etc/nginx/sites-available/tooljet
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/tooljet
# 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