One-Click Install Prompt Hub中文

Caddy

Reverse proxy and web server with automatic HTTPS.

Category Reverse Proxy / TLSPlatforms Debian / Ubuntu / RaspbianPrivileges Requires sudoChinese docs Many Chinese tutorialsStars ~76K

One-click install command

sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https curlncurl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpgncurl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.listnsudo chmod o+r /usr/share/keyrings/caddy-stable-archive-keyring.gpgnsudo chmod o+r /etc/apt/sources.list.d/caddy-stable.listnsudo apt updatensudo apt install caddy

Notes

In production, prefer official distro packages and verify release signatures.

Agent Prompt

Copy the block below and hand it to an AI Agent — replace [bracketed] parts with your own values.

Deploy Caddy (Reverse proxy and web server with automatic HTTPS) in my environment.

Before starting:
1. Run read-only checks first: OS version, CPU architecture, available disk/RAM, port usage, Docker or sudo access — and report the findings.
2. Use the project source https://github.com/caddyserver/caddy as ground truth; verify the current stable version, prerequisites and compatibility.
3. Present an execution plan, the files/services/firewall rules to be changed, and a complete rollback plan; wait for my confirmation before executing.
4. Download remote scripts locally for review first; pin tag / image digest / commit; don't rely on latest or master.
5. Never put secrets (passwords, API keys, tokens, subscription URLs) in the prompt, shell history or logs — use 600-permission env files, Docker secrets or _FILE variables instead.

Verified starting command (don't run blindly — download/expand and review first):
sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https curlncurl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpgncurl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.listnsudo chmod o+r /usr/share/keyrings/caddy-stable-archive-keyring.gpgnsudo chmod o+r /etc/apt/sources.list.d/caddy-stable.listnsudo apt updatensudo apt install caddy

Project-specific notes:
- In production, prefer official distro packages and verify release signatures.
- Permission requirement: Requires sudo. Don't escalate privileges; don't run containers as root unnecessarily.

After execution, verify and report back:
- Installed version, service status and health check results;
- Open ports, listen addresses, firewall changes;
- Config files, data volumes, log and backup locations;
- Access method (for sensitive credentials, only state where they're stored — never print them);
- Restart policy, plus verified uninstall / rollback commands.

Related tools