{"id":13393698,"url":"https://github.com/caddyserver/caddy","last_synced_at":"2026-01-15T22:19:50.990Z","repository":{"id":25769384,"uuid":"29207621","full_name":"caddyserver/caddy","owner":"caddyserver","description":"Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS","archived":false,"fork":false,"pushed_at":"2025-05-02T17:56:46.000Z","size":19105,"stargazers_count":64045,"open_issues_count":187,"forks_count":4282,"subscribers_count":842,"default_branch":"master","last_synced_at":"2025-05-05T13:49:37.536Z","etag":null,"topics":["acme","automatic-https","caddy","caddyfile","go","golang","http","http-server","http3","https","privacy","reverse-proxy","security","tls","web-server"],"latest_commit_sha":null,"homepage":"https://caddyserver.com","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/caddyserver.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["mholt"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2015-01-13T19:45:03.000Z","updated_at":"2025-05-05T13:00:07.000Z","dependencies_parsed_at":"2023-12-18T23:03:21.181Z","dependency_job_id":"a58bb368-f0e3-4ec6-b7d4-eff6c9612396","html_url":"https://github.com/caddyserver/caddy","commit_stats":{"total_commits":2007,"total_committers":289,"mean_commits":6.944636678200692,"dds":0.4803188839063278,"last_synced_commit":"7088605cc11c52c2777ab613dfc5c2a9816006e4"},"previous_names":["mholt/caddy"],"tags_count":145,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caddyserver%2Fcaddy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caddyserver%2Fcaddy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caddyserver%2Fcaddy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caddyserver%2Fcaddy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/caddyserver","download_url":"https://codeload.github.com/caddyserver/caddy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253757622,"owners_count":21959445,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["acme","automatic-https","caddy","caddyfile","go","golang","http","http-server","http3","https","privacy","reverse-proxy","security","tls","web-server"],"created_at":"2024-07-30T17:00:58.815Z","updated_at":"2026-01-15T22:19:50.985Z","avatar_url":"https://github.com/caddyserver.png","language":"Go","readme":"\u003cp align=\"center\"\u003e\n\t\u003ca href=\"https://caddyserver.com\"\u003e\n\t\t\u003cpicture\u003e\n\t\t\t\u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://user-images.githubusercontent.com/1128849/210187358-e2c39003-9a5e-4dd5-a783-6deb6483ee72.svg\"\u003e\n\t\t\t\u003csource media=\"(prefers-color-scheme: light)\" srcset=\"https://user-images.githubusercontent.com/1128849/210187356-dfb7f1c5-ac2e-43aa-bb23-fc014280ae1f.svg\"\u003e\n\t\t\t\u003cimg src=\"https://user-images.githubusercontent.com/1128849/210187356-dfb7f1c5-ac2e-43aa-bb23-fc014280ae1f.svg\" alt=\"Caddy\" width=\"550\"\u003e\n\t\t\u003c/picture\u003e\n\t\u003c/a\u003e\n\t\u003cbr\u003e\n\t\u003ch3 align=\"center\"\u003ea \u003ca href=\"https://zerossl.com\"\u003e\u003cimg src=\"https://user-images.githubusercontent.com/55066419/208327323-2770dc16-ec09-43a0-9035-c5b872c2ad7f.svg\" height=\"28\" style=\"vertical-align: -7.7px\" valign=\"middle\"\u003e\u003c/a\u003e project\u003c/h3\u003e\n\u003c/p\u003e\n\u003chr\u003e\n\u003ch3 align=\"center\"\u003eEvery site on HTTPS\u003c/h3\u003e\n\u003cp align=\"center\"\u003eCaddy is an extensible server platform that uses TLS by default.\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n\t\u003ca href=\"https://github.com/caddyserver/caddy/releases\"\u003eReleases\u003c/a\u003e ·\n\t\u003ca href=\"https://caddyserver.com/docs/\"\u003eDocumentation\u003c/a\u003e ·\n\t\u003ca href=\"https://caddy.community\"\u003eGet Help\u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n\t\u003ca href=\"https://github.com/caddyserver/caddy/actions/workflows/ci.yml\"\u003e\u003cimg src=\"https://github.com/caddyserver/caddy/actions/workflows/ci.yml/badge.svg\"\u003e\u003c/a\u003e\n\t\u0026nbsp;\n\t\u003ca href=\"https://www.bestpractices.dev/projects/7141\"\u003e\u003cimg src=\"https://www.bestpractices.dev/projects/7141/badge\"\u003e\u003c/a\u003e\n\t\u0026nbsp;\n\t\u003ca href=\"https://pkg.go.dev/github.com/caddyserver/caddy/v2\"\u003e\u003cimg src=\"https://img.shields.io/badge/godoc-reference-%23007d9c.svg\"\u003e\u003c/a\u003e\n\t\u0026nbsp;\n\t\u003ca href=\"https://x.com/caddyserver\" title=\"@caddyserver on Twitter\"\u003e\u003cimg src=\"https://img.shields.io/twitter/follow/caddyserver\" alt=\"@caddyserver on Twitter\"\u003e\u003c/a\u003e\n\t\u0026nbsp;\n\t\u003ca href=\"https://caddy.community\" title=\"Caddy Forum\"\u003e\u003cimg src=\"https://img.shields.io/badge/community-forum-ff69b4.svg\" alt=\"Caddy Forum\"\u003e\u003c/a\u003e\n\t\u003cbr\u003e\n\t\u003ca href=\"https://sourcegraph.com/github.com/caddyserver/caddy?badge\" title=\"Caddy on Sourcegraph\"\u003e\u003cimg src=\"https://sourcegraph.com/github.com/caddyserver/caddy/-/badge.svg\" alt=\"Caddy on Sourcegraph\"\u003e\u003c/a\u003e\n\t\u0026nbsp;\n\t\u003ca href=\"https://cloudsmith.io/~caddy/repos/\"\u003e\u003cimg src=\"https://img.shields.io/badge/OSS%20hosting%20by-cloudsmith-blue?logo=cloudsmith\" alt=\"Cloudsmith\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n\t\u003cb\u003ePowered by\u003c/b\u003e\n\t\u003cbr\u003e\n\t\u003ca href=\"https://github.com/caddyserver/certmagic\"\u003e\n\t\t\u003cpicture\u003e\n\t\t\t\u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://user-images.githubusercontent.com/55066419/206946718-740b6371-3df3-4d72-a822-47e4c48af999.png\"\u003e\n\t\t\t\u003csource media=\"(prefers-color-scheme: light)\" srcset=\"https://user-images.githubusercontent.com/1128849/49704830-49d37200-fbd5-11e8-8385-767e0cd033c3.png\"\u003e\n\t\t\t\u003cimg src=\"https://user-images.githubusercontent.com/1128849/49704830-49d37200-fbd5-11e8-8385-767e0cd033c3.png\" alt=\"CertMagic\" width=\"250\"\u003e\n\t\t\u003c/picture\u003e\n\t\u003c/a\u003e\n\u003c/p\u003e\n\n\u003c!-- Warp sponsorship requests this section --\u003e\n\u003cdiv align=\"center\" markdown=\"1\"\u003e\n\t\u003chr\u003e\n\t\u003csup\u003eSpecial thanks to:\u003c/sup\u003e\n\t\u003cbr\u003e\n\t\u003ca href=\"https://go.warp.dev/caddy\"\u003e\n\t\t\u003cimg alt=\"Warp sponsorship\" width=\"400\" src=\"https://github.com/user-attachments/assets/c8efffde-18c7-4af4-83ed-b1aba2dda394\"\u003e\n\t\u003c/a\u003e\n\n### [Warp, built for coding with multiple AI agents](https://go.warp.dev/caddy)\n[Available for MacOS, Linux, \u0026 Windows](https://go.warp.dev/caddy)\u003cbr\u003e\n\u003c/div\u003e\n\n\u003chr\u003e\n\n### Menu\n\n- [Features](#features)\n- [Install](#install)\n- [Build from source](#build-from-source)\n\t- [For development](#for-development)\n\t- [With version information and/or plugins](#with-version-information-andor-plugins)\n- [Quick start](#quick-start)\n- [Overview](#overview)\n- [Full documentation](#full-documentation)\n- [Getting help](#getting-help)\n- [About](#about)\n\n\n## [Features](https://caddyserver.com/features)\n\n- **Easy configuration** with the [Caddyfile](https://caddyserver.com/docs/caddyfile)\n- **Powerful configuration** with its [native JSON config](https://caddyserver.com/docs/json/)\n- **Dynamic configuration** with the [JSON API](https://caddyserver.com/docs/api)\n- [**Config adapters**](https://caddyserver.com/docs/config-adapters) if you don't like JSON\n- **Automatic HTTPS** by default\n\t- [ZeroSSL](https://zerossl.com) and [Let's Encrypt](https://letsencrypt.org) for public names\n\t- Fully-managed local CA for internal names \u0026 IPs\n\t- Can coordinate with other Caddy instances in a cluster\n\t- Multi-issuer fallback\n\t- Encrypted ClientHello (ECH) support\n- **Stays up when other servers go down** due to TLS/OCSP/certificate-related issues\n- **Production-ready** after serving trillions of requests and managing millions of TLS certificates\n- **Scales to hundreds of thousands of sites** as proven in production\n- **HTTP/1.1, HTTP/2, and HTTP/3** all supported by default\n- **Highly extensible** [modular architecture](https://caddyserver.com/docs/architecture) lets Caddy do anything without bloat\n- **Runs anywhere** with **no external dependencies** (not even libc)\n- Written in Go, a language with higher **memory safety guarantees** than other servers\n- Actually **fun to use**\n- So much more to [discover](https://caddyserver.com/features)\n\n## Install\n\nThe simplest, cross-platform way to get started is to download Caddy from [GitHub Releases](https://github.com/caddyserver/caddy/releases) and place the executable file in your PATH.\n\nSee [our online documentation](https://caddyserver.com/docs/install) for other install instructions.\n\n## Build from source\n\nRequirements:\n\n- [Go 1.25.0 or newer](https://golang.org/dl/)\n\n### For development\n\n_**Note:** These steps [will not embed proper version information](https://github.com/golang/go/issues/29228). For that, please follow the instructions in the next section._\n\n```bash\n$ git clone \"https://github.com/caddyserver/caddy.git\"\n$ cd caddy/cmd/caddy/\n$ go build\n```\n\nWhen you run Caddy, it may try to bind to low ports unless otherwise specified in your config. If your OS requires elevated privileges for this, you will need to give your new binary permission to do so. On Linux, this can be done easily with: `sudo setcap cap_net_bind_service=+ep ./caddy`\n\nIf you prefer to use `go run` which only creates temporary binaries, you can still do this with the included `setcap.sh` like so:\n\n```bash\n$ go run -exec ./setcap.sh main.go\n```\n\nIf you don't want to type your password for `setcap`, use `sudo visudo` to edit your sudoers file and allow your user account to run that command without a password, for example:\n\n```\nusername ALL=(ALL:ALL) NOPASSWD: /usr/sbin/setcap\n```\n\nreplacing `username` with your actual username. Please be careful and only do this if you know what you are doing! We are only qualified to document how to use Caddy, not Go tooling or your computer, and we are providing these instructions for convenience only; please learn how to use your own computer at your own risk and make any needful adjustments.\n\nThen you can run the tests in all modules or a specific one:\n\n```bash\n$ go test ./...\n$ go test ./modules/caddyhttp/tracing/\n```\n\n### With version information and/or plugins\n\nUsing [our builder tool, `xcaddy`](https://github.com/caddyserver/xcaddy)...\n\n```bash\n$ xcaddy build\n```\n\n...the following steps are automated:\n\n1. Create a new folder: `mkdir caddy`\n2. Change into it: `cd caddy`\n3. Copy [Caddy's main.go](https://github.com/caddyserver/caddy/blob/master/cmd/caddy/main.go) into the empty folder. Add imports for any custom plugins you want to add.\n4. Initialize a Go module: `go mod init caddy`\n5. (Optional) Pin Caddy version: `go get github.com/caddyserver/caddy/v2@version` replacing `version` with a git tag, commit, or branch name.\n6. (Optional) Add plugins by adding their import: `_ \"import/path/here\"`\n7. Compile: `go build -tags=nobadger,nomysql,nopgx`\n\n\n\n\n## Quick start\n\nThe [Caddy website](https://caddyserver.com/docs/) has documentation that includes tutorials, quick-start guides, reference, and more.\n\n**We recommend that all users -- regardless of experience level -- do our [Getting Started](https://caddyserver.com/docs/getting-started) guide to become familiar with using Caddy.**\n\nIf you've only got a minute, [the website has several quick-start tutorials](https://caddyserver.com/docs/quick-starts) to choose from! However, after finishing a quick-start tutorial, please read more documentation to understand how the software works. 🙂\n\n\n\n\n## Overview\n\nCaddy is most often used as an HTTPS server, but it is suitable for any long-running Go program. First and foremost, it is a platform to run Go applications. Caddy \"apps\" are just Go programs that are implemented as Caddy modules. Two apps -- `tls` and `http` -- ship standard with Caddy.\n\nCaddy apps instantly benefit from [automated documentation](https://caddyserver.com/docs/json/), graceful on-line [config changes via API](https://caddyserver.com/docs/api), and unification with other Caddy apps.\n\nAlthough [JSON](https://caddyserver.com/docs/json/) is Caddy's native config language, Caddy can accept input from [config adapters](https://caddyserver.com/docs/config-adapters) which can essentially convert any config format of your choice into JSON: Caddyfile, JSON 5, YAML, TOML, NGINX config, and more.\n\nThe primary way to configure Caddy is through [its API](https://caddyserver.com/docs/api), but if you prefer config files, the [command-line interface](https://caddyserver.com/docs/command-line) supports those too.\n\nCaddy exposes an unprecedented level of control compared to any web server in existence. In Caddy, you are usually setting the actual values of the initialized types in memory that power everything from your HTTP handlers and TLS handshakes to your storage medium. Caddy is also ridiculously extensible, with a powerful plugin system that makes vast improvements over other web servers.\n\nTo wield the power of this design, you need to know how the config document is structured. Please see [our documentation site](https://caddyserver.com/docs/) for details about [Caddy's config structure](https://caddyserver.com/docs/json/).\n\nNearly all of Caddy's configuration is contained in a single config document, rather than being scattered across CLI flags and env variables and a configuration file as with other web servers. This makes managing your server config more straightforward and reduces hidden variables/factors.\n\n\n## Full documentation\n\nOur website has complete documentation:\n\n**https://caddyserver.com/docs/**\n\nThe docs are also open source. You can contribute to them here: https://github.com/caddyserver/website\n\n\n\n## Getting help\n\n- We advise companies using Caddy to secure a support contract through [Ardan Labs](https://www.ardanlabs.com) before help is needed.\n\n- A [sponsorship](https://github.com/sponsors/mholt) goes a long way! We can offer private help to sponsors. If Caddy is benefitting your company, please consider a sponsorship. This not only helps fund full-time work to ensure the longevity of the project, it provides your company the resources, support, and discounts you need; along with being a great look for your company to your customers and potential customers!\n\n- Individuals can exchange help for free on our community forum at https://caddy.community. Remember that people give help out of their spare time and good will. The best way to get help is to give it first!\n\nPlease use our [issue tracker](https://github.com/caddyserver/caddy/issues) only for bug reports and feature requests, i.e. actionable development items (support questions will usually be referred to the forums).\n\n\n\n## About\n\nMatthew Holt began developing Caddy in 2014 while studying computer science at Brigham Young University. (The name \"Caddy\" was chosen because this software helps with the tedious, mundane tasks of serving the Web, and is also a single place for multiple things to be organized together.) It soon became the first web server to use HTTPS automatically and by default, and now has hundreds of contributors and has served trillions of HTTPS requests.\n\n**The name \"Caddy\" is trademarked.** The name of the software is \"Caddy\", not \"Caddy Server\" or \"CaddyServer\". Please call it \"Caddy\" or, if you wish to clarify, \"the Caddy web server\". Caddy is a registered trademark of Stack Holdings GmbH.\n\n- _Project on X: [@caddyserver](https://x.com/caddyserver)_\n- _Author on X: [@mholt6](https://x.com/mholt6)_\n\nCaddy is a project of [ZeroSSL](https://zerossl.com), a Stack Holdings company.\n\nDebian package repository hosting is graciously provided by [Cloudsmith](https://cloudsmith.com). Cloudsmith is the only fully hosted, cloud-native, universal package management solution, that enables your organization to create, store and share packages in any format, to any place, with total confidence.\n","funding_links":["https://github.com/sponsors/mholt"],"categories":["Go","Popular","Server Applications","Awesome","HarmonyOS","服务器应用程序","Networking, Distributed, Microservices \u0026 Cloud - Tools \u0026 Services","[Go](#go)","Go (531)","语言资源库","网络服务","security","golang","Http-Server","File Sharing","Load Balancing \u0026 Ingress","Application Recommendation","Uncategorized","Back-End Development","后端","Repositories","Relational Databases","🧰 命令行工具","Advertising \u0026 sponsorships"],"sub_categories":["HTTP Clients","Windows Manager","HTTP客户端","go","网络服务_其他","📡 Web Tools","Uncategorized","网络"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaddyserver%2Fcaddy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaddyserver%2Fcaddy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaddyserver%2Fcaddy/lists"}