Caddy: Difference between revisions
No edit summary |
|||
| Line 27: | Line 27: | ||
== Configuration == | == Configuration == | ||
=== Plug-ins === | |||
{{Note|Parts of this module are not yet stable will be available with the upcoming NixOS release 25.05.}} | |||
Following example is adding the plugin powerdns in version 1.0.1 to your Caddy binary<syntaxhighlight lang="nix"> | |||
services.caddy = { | |||
enable = true; | |||
package = pkgs.caddy.withPlugins { | |||
plugins = [ "github.com/caddy-dns/powerdns@v1.0.1" ]; | |||
hash = "sha256-F/jqR4iEsklJFycTjSaW8B/V3iTGqqGOzwYBUXxRKrc="; | |||
}; | |||
}; | |||
</syntaxhighlight> | |||
=== Reverse proxy === | === Reverse proxy === | ||
| Line 102: | Line 114: | ||
APIKEY=YOURKEY | APIKEY=YOURKEY | ||
APISECRETKEY=OTHERKEY | APISECRETKEY=OTHERKEY | ||
</syntaxhighlight> | </syntaxhighlight> | ||