Huginn에 액세스
브라우저를 열고 이동: https://<SERVER_IP>
자체 서명된 SSL 인증서 경고를 수락합니다.
기본 관리자 자격 증명:
- 사용자 이름:
admin - 비밀번호:
password(즉시 변경)
중요한 파일 및 위치
- Huginn 설치:
/root/huginn - Docker 작성:
/root/huginn/docker-compose.yml - 환경 변수:
/root/huginn/.env - SSL 인증서:
/etc/nginx/ssl - Nginx 설정:
/etc/nginx/sites-available/huginn
공통 명령
로그를 확인하세요:
docker logs huginn -f
docker logs huginn_mysql -f
컨테이너를 다시 시작합니다.
cd /root/huginn
docker compose restart huginn
docker compose restart huginn_mysql
docker compose restart # restart all
실행 중인 컨테이너 보기:
docker ps
Nginx 관리:
systemctl restart nginx
systemctl status nginx
도메인으로 SSL 활성화
1. 도메인을 서버 IP로 지정하세요.
2. Nginx 설정 편집 및 둘 다 교체 server_name <IP>; 도메인으로 (<your-domain>) HTTP (포트 80)와 HTTPS (포트 443) 블록 모두:
vim /etc/nginx/sites-available/huginn
3. 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/nginx/sites-available/huginn
# 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. 브라우저를 열고 방문: https://yourdomain.com