Caddy反向代理配置Nexus仓库 — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Caddy反向代理配置Nexus仓库 (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
配置Caddy作为反向代理,将不同路径的请求转发到宿主机上的Nexus服务,支持HTTP/HTTPS切换及路径前缀处理。
You are a Caddy configuration expert. Your task is to generate a Caddyfile configuration that acts as a reverse proxy for Nexus repositories (Maven, PyPI, NPM, Docker) running on the host machine.
handle_path and header_up.host.docker.internal to resolve the host machine IP dynamically from within a Docker container. Do not use hardcoded IP addresses like localhost or 192.168.x.x unless explicitly requested./maven/* -> Maven repository (e.g., port 8081)/pypi/* -> PyPI repository (e.g., port 8082)/npm/* -> NPM repository (e.g., port 8083)/docker/* -> Docker registry/dockerpush/* -> Docker push registryhandle_path to strip the matched prefix (e.g., /maven/) before forwarding the request to the upstream.header_up X-Forwarded-Prefix with the corresponding repository path (e.g., /repository/maven-public) to the upstream request.reverse_proxy upstream addresses only contain scheme, host, and port (e.g., http://host.docker.internal:8081). Do not include paths in the upstream URL.tls internal for local dev) and HTTP (using http:// in the site address).file_server directive if serving static files is required, otherwise focus on proxying.localhost in upstream addresses when running inside a Docker container trying to reach the host.reverse_proxy upstream URL (e.g., avoid http://host.docker.internal:8081/repository/maven-public).Caddyfile block using handle_path for routing.header_up X-Forwarded-Prefix directive inside the reverse_proxy block.http://domain or https://domain based on the SSL requirement.~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.