轩辕镜像 官方专业版
轩辕镜像
专业版
轩辕镜像 官方专业版
轩辕镜像
专业版
首页个人中心搜索镜像
交易
充值流量¥7起我的订单
文档
工具
提交工单页面收录
archivebox-proxy

wires160/archivebox-proxy

wires160

Adds archivebox-proxy to mitmproxy image to work with docker compose archivebox.

下载次数: 0状态:社区镜像维护者:wires160仓库类型:镜像最近更新:10 个月前
让 AI 帮你使用轩辕镜像? · 展开查看说明 · 点击收起说明

如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。

只需在 AI 对话中先发送下面这句话即可:

请先完整阅读并严格遵守以下文档中的全部规则与要求:

https://xuanyuan.cloud/agents.md

在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。

查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。

镜像简介
下载命令
镜像标签列表与下载命令
轩辕镜像,快一点,稳很多。
点击查看

ArchiveBox Proxy

A proxy that saves navigated URLs to https://github.com/ArchiveBox/ArchiveBox, implemented with https://github.com/mitmproxy/mitmproxy.

✨ Originally developed by https://github.com/brunocek/archivebox-proxy

This container is designed to be used with docker compose to build an ArchiveBox application that can monitor traffic through a mitmproxy proxy and automatically add visited pages to the ArchiveBox archive.

To allow archivebox-proxy to access ArchiveBox running in a separate container, we expose the docker socket. This may have security implications but seems to be the best way to communicate between containers at this time. ArchiveBox v0.9 may include an HTTP API that would make this method obsolete.


This project is intended to meet ArchiveBox's ticket 557: https://github.com/ArchiveBox/ArchiveBox/issues/577. The main challenge is to serve ios, as ios does not allow firefox plugins to be installed.

Installation

Follow the https://github.com/ArchiveBox/ArchiveBox/wiki/Docker#docker-compose for installing a docker compose application. First create the folder where you plan to save your ArchiveBox archive. This will be a folder on your host computer (e.g., /archivebox) and you will also create a data folder (e.g., /archivebox/data). Download docker-compose.yml into the main ArchiveBox folder, not the data directory.

You will need two edits of the base docker-compose.yml file. First, add a container name to the archivebox service. This allows archivebox-proxy to identify the container running the main archivebox service.

    archivebox:
        image: archivebox/archivebox:latest
        container_name: archivebox_main
        ports:
            - 8000:8000

Next, you will add a service description for the archivebox-proxy service:

    ### This runs the archivebox-proxy built on a mitmproxy image
    # https://github.com/ArchiveBox/archivebox-proxy

    archivebox-proxy:
        image: wires160/archivebox-proxy:latest
        ports:
            - 8080:8080
        volumes:
            - ./data/.mitmproxy:/home/mitmproxy/.mitmproxy
            - ./data/.mitmproxy:/root/.mitmproxy
            - /var/run/docker.sock:/var/run/docker.sock
            - ./data:/data

Note that you can assign a different external port number to the service to avoid conflicts with other services on your server.

Run all docker compose commands from within the archivebox directory containing your docker-compose.yml file. First start the application and initialize the archive collection:

sudo docker compose run archivebox init

Next, start the full application:

sudo docker compose up

On the first run, archivebox-proxy copies its configuration file to the data directory where it can be edited as described below.

To test the proxy, open an HTTP only website like http://mitm.it which is a built-in magic site. See below instructions for configuring HTTPS proxying.

Configuration

ArchiveBox

See https://github.com/ArchiveBox/ArchiveBox/wiki/Configuration regarding configuration changes. These can be made using sudo docker compose run archivebox config or by directly editing ArchiveBox.conf in the ./data directory. *** changing which types of archives are saved (e.g., singlefile, PDF screenshot, Chrome screenshot, wget archive, etc.) and the USER_AGENT that is sent since some sites block automated or headless requests.

Configuring an HTTPS client

HTTPS will not work out of the box since mitmproxy works by signing connections with its own certificate that is not trusted by your client until you install the certificate. Open http://mitm.it and follow the instructions for your platform to install and trust the certificate. This should only need to be done once since the container stores the mitmproxy keys in the ./data directory that is persistent.

Archivebox-proxy Modes

The config file ( config-archivebox-proxy.yaml ) holds a parameter for mode that can be: record, or archive.

The reason for two modes is explained in the section below Identifying User HTTP Requests - not trivial.

On record mode, archivebox-proxy will record all the navigation on record.yaml file, and the user will need to latter on manually run archivebox add record.yaml. The user may edit the file with vim and remove some of the lines ( dd ) with URLs not for archiving.

On archive mode, archivebox-proxy will run archivebox add to each of the identified URLs. Please read section Identifying User HTTP requests - not trivial bellow, before using this mode.

Troubleshooting

While moving my application from a test server to my production server, I encountered a permissions error with the archivebox-proxy container. When this container starts, docker-entrypoint.sh atte***s to change the UID of the mitmproxy user account using usermod so that it matches the UID that owns the mitmproxy configuration files. Since I have bound /root/.mitmproxy to our data directory, the container needs a user with UID that matches the UID that owns the files on your server. *** creating an archivebox user:group on the server to fill this role. The ArchiveBox container defaults archivebox:archivebox to 911:911.

Comments

Identifying User HTTP Requests - not trivial

When developing this proxy, I came across research papers trying to solve the open problem of identifying User Actions in a HTTP Flow. It is not a trivial problem to solve as you can attest in the article bellow.

At that time (2016), some of the evidence on HTTP flows:

"..a single request for the Huffington Post website results in the download of 408 objects from 113 unique domains. A similar analysis by Butkiewicz et al. [4], of 1,700 popular websites showed that the median landing page consists of at least 40 objects, requested from 10 or more servers, most of which are operated by third-party services."

"..Here, the pool of starting pages is randomly selected from the top-1,000 most popular webpages according to alexa.com, excluding HTTPS pages and Chinese websites (using non-Roman script). HTTPS pages were omitted to allow fair head-to-head comparison. On average, each trace of 500 page requests resulted in 29,506 HTTP requests, distributed over 14.168 connections."


As of today, 2024, traffic is HTTPS, but this problem still exists.

I implemented filters based on the authors insights and these can be tweaked by changing the float constants __time_window_next and __reset_timer in the script. (I may externalise them to the config file if users demand to constantly tinker with it).

Some more filters may be in place:

  • mitmdump filter expressions, specially '!~a', that filters out webpage assets. For more on these: ([***] )
  • commercial s such as i and *** filter adverts
  • projects such as https://github.com/arkenfox/user.js
  • firefox hardening such as https://github.com/arkenfox/user.js

With all these filters running, I still get a lot of URLs that are not user action. More research must be invested on this. I count with your help on the issues forum.


Georgios Rizothanasis; Niklas Carlsson; Aniket Mahanti Identifying User Actions from HTTP(S) Traffic IEEE, 2016 ( [***] )

historic

2024-01 Bruno Schroeder kick-starts and asks for contribution with the architectural decisions, and delivers a script for mitmproxy. 2025-08 Wires160 changes: - Fixed subprocess not imported error - Added functionality to allow configuration file changes to be persistent by moving the base file to ./data - Changed archive process call to use docker socket to communicate with the ArchiveBox container

ios alternative solution

For each tab:

  1. Hit share, and share it to iMarkdown or Obsidian
  2. Obsidian asks which file to append to - one may have one file per tag/subject
  3. ios appends the url there (but sometimes it appends the page title and work must be re-done)
  4. Tab must be closed

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 archivebox-proxy 镜像标签

docker pull docker.xuanyuan.run/wires160/archivebox-proxy:<标签>

使用方法:

  • 登录认证方式
  • 免认证方式

DockerHub 原生拉取命令

docker pull wires160/archivebox-proxy:<标签>

轩辕镜像配置手册

按平台快速找到配置文档

一键安装

一键安装 Docker

Linux Docker 一键安装

AI

用 AI 使用轩辕镜像

agents.md · AI 对话 · 提示词

Docker

登录仓库拉取

登录认证 · 私有仓库

专属域名拉取

免登录 · 高速拉取

Linux

Docker 镜像配置

Windows / Mac

Docker Desktop 配置

MacOS OrbStack

OrbStack 容器

Apple Container

macOS 原生容器

Docker Compose

Compose 项目配置

NAS

群晖

Synology 配置

飞牛

fnOS 镜像配置

绿联

绿联 NAS

威联通

QNAP 配置

极空间

极空间 NAS

Unraid

Unraid NAS

企业仓库

其他仓库

ghcr · Quay · nvcr

Harbor 镜像源

Proxy Repository 对接

Portainer 镜像源

Registries 配置

Nexus 镜像源

Docker Proxy 缓存

开发工具

Dev Containers

VS Code 开发容器

Podman

Podman 配置指南

Singularity / Apptainer

HPC 科学计算容器

Kubernetes

K8s Containerd

Kubernetes · Containerd

K3s

轻量级集群

面板 / 网络

爱快路由

iKuai 镜像加速

宝塔面板

一键配置镜像源

需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单

镜像拉取常见问题

功能

版本功能对比

功能对比 · 版本选择

支持的镜像仓库

Docker Hub · GCR · GHCR

新手拉取配置

登录 · 专属域名 · 配置

docker search 限制

专属域名 · Hub 搜索

不支持 push

仅支持 pull · 不支持

拉取速度原因

带宽 · 缓存 · 冷热镜像

错误码

402 与流量用尽

402 · 流量包 · 充值

401 认证失败

401 · docker login

manifest unknown

标签错误 · 镜像不存在

410 Gone 排查

410 · Docker 升级

429 限流

免费版 · 专业版 · 企业版 · 请求频率

其他报错

DNS 超时

DNS 解析 · 网络超时

TLS 证书失败

no matching manifest(架构)

账号

失败是否计费

manifest · blob · 计费

申请开发票(企业 / 个人)

企业 · 个人 · 工单

修改登录密码

网站 · 仓库 · 重置

注销账户

工单 · 数据 · 注销

原理

mirrors 不生效

daemon.json · 重启

去掉域名前缀

docker tag · 重命名

指定架构拉取

ARM64 · AMD64 · 多架构

latest 与「最新」

digest · 版本号 · 标签

查看全部问题→

用户好评

来自真实用户的反馈,见证轩辕镜像的优质服务

用户头像

oldzhang

运维工程师

Linux服务器

5

"Docker访问体验非常流畅,大镜像也能快速完成下载。"

轩辕镜像
镜像详情
...
wires160/archivebox-proxy
定价查看流量套餐与价格
博客Docker 镜像公告与技术博客
专业版 · 高速稳定拉取镜像
高速镜像下载·在线技术支持·99.95% SLA 保障·付费会员免广告
50GB 仅 ¥7/年
专业版 · 高速稳定拉取镜像
50GB 仅 ¥7/年
高速镜像下载·在线技术支持·99.95% SLA 保障·付费会员免广告
用户协议·隐私政策·增值电信业务经营许可证:浙B2-20261007·©2024-2026 源码跳动©2024-2026 杭州源码跳动科技有限公司·商务合作:点击复制邮箱

更多 archivebox-proxy 镜像推荐

archivebox/archivebox logo

archivebox/archivebox

archivebox
这是ArchiveBox自托管互联网归档工具的官方Docker镜像,该工具允许用户自行搭建服务,用于归档网页、链接、图片、视频等互联网内容,确保信息永久保存并可离线访问,无需依赖第三方平台,为个人或组织提供安全、可控的网络内容存档解决方案。
99 次收藏1000万+ 次下载
12 天前更新
haproxytech/haproxy-debian logo

haproxytech/haproxy-debian

haproxytech
HAProxy社区版Docker Debian镜像,提供高性能的开源负载均衡和应用交付控制功能,支持TCP/HTTP代理、SSL终止、健康检查等特性,适用于构建可靠的流量管理解决方案。
9 次收藏1000万+ 次下载
3 天前更新
haproxytech/haproxy-alpine logo

haproxytech/haproxy-alpine

haproxytech
HAProxy社区版Docker镜像,基于Alpine Linux构建,提供高性能负载均衡与反向代理功能,适用于构建轻量级、高可用的Web服务或应用集群。
19 次收藏500万+ 次下载
4 天前更新
haproxytech/haproxy-ubuntu logo

haproxytech/haproxy-ubuntu

haproxytech
HAProxy社区版Docker Ubuntu镜像
6 次收藏100万+ 次下载
4 天前更新
haproxytech/haproxy-qns logo

haproxytech/haproxy-qns

haproxytech
该Docker镜像包含用于HAProxy的QUIC互操作性测试文件
2 次收藏10万+ 次下载
13 小时前更新
haproxy logo

library/haproxy

Docker 官方镜像
HAProxy是一款可靠的高性能负载均衡器,主要用于TCP和HTTP协议的流量分发,能够有效均衡服务器负载、提高系统可用性与响应速度,广泛应用于Web服务、数据库集群等场景,通过智能流量调度确保服务稳定运行,是构建高可用、高性能网络架构的关键工具。
2.0千 次收藏10亿+ 次下载
18 小时前更新

查看更多 archivebox-proxy 相关镜像