アクセス
- 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
構成
Web 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