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