접근
- URL:
https://<SERVER_IP> - HTTP Basic Authentication으로 보호됨
- 자격 증명 저장 위치:
/root/.adclaw-credentials - 다음 명령으로 확인:
cat /root/.adclaw-credentials
첫 번째 단계
- 브라우저에서 URL 열기
- 자체 서명된 SSL 경고 수락
- 자격 증명 파일의 사용자 이름과 비밀번호 입력
- AdClaw 인터페이스로 리디렉션됩니다
중요한 파일과 디렉토리
- 설치 디렉토리:
/opt/adclaw - Docker Compose:
/opt/adclaw/docker-compose.yml - 환경 파일:
/opt/adclaw/.env - 데이터 용량:
/var/lib/docker/volumes/adclaw-data/_data - 시크릿 볼륨:
/var/lib/docker/volumes/adclaw-secret/_data - Nginx 설정:
/etc/nginx/sites-available/adclaw.conf - 인증 파일:
/etc/nginx/auth/.htpasswd-adclaw - SSL 인증서:
/etc/nginx/ssl/ - 자격증명:
/root/.adclaw-credentials
관리 명령
작동:
docker compose -f /opt/adclaw/docker-compose.yml up -d
중지:
docker compose -f /opt/adclaw/docker-compose.yml down
재시작:
docker compose -f /opt/adclaw/docker-compose.yml restart
로그 보기:
docker logs -f adclaw
설정
웹 UI로 구성을 제어하고 업데이트할 수 있습니다.
또는 다음 안의 환경 변수를 직접 편집하세요 /opt/adclaw/.env 변경 사항 적용:
docker compose -f /opt/adclaw/docker-compose.yml up -d
도메인으로 SSL 활성화
1. 도메인을 서버 IP로 지정하세요.
2. Nginx 설정 편집 및 둘 다 교체 server_name <IP>; 도메인으로 (<your-domain>) HTTP (포트 80)와 HTTPS (포트 443) 블록 모두:
vim /etc/nginx/sites-available/adclaw.conf
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/adclaw.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;
6. Nginx 재시작으로 변경 사항 적용:
systemctl restart nginx
7. 브라우저를 열고 방문: https://yourdomain.com