The official template used to deploy Caddy on Railway with one click.
- Plugin support. Deploy a custom build of Caddy with any plugins that you specify.
- Custom config. Supports all configuration modes, but comes with a Caddyfile for starters.
- Dependency-free. No runtime dependencies makes for a very simple deployment!
Click this button:
Then on the page that opens, click "Deploy Now":
(TODO: Screenshot)
Before deploying, you can change "pre-configured environment variables" to customize your deployment:
Click to expand, and fill in your customizations, for example:
(We recommend pasting values in, rather than typing them. You can also change these later and redeploy.)
| Name | Explanation | Examples |
|---|---|---|
CADDY_VERSION |
The version to build as a git ref (tag, branch, or commit SHA); default is latest tag | v2.11.2, master, 2dbcdefbbee68e7b4a31ac66361a0f4e3bcd2eea |
CADDY_PLUGINS |
List of plugins to build, separated by spaces or newlines | github.com/caddy-dns/cloudflare github.com/mholt/caddy-l4 |
CADDYFILE |
Caddy config to use (assuming default Caddyfile is unchanged, which uses this env var for the whole file) | :8080 {... |
(WIP. More docs coming soon.)