Caddy: Difference between revisions
imported>Montchr fix code block formatting resulting in invalid rendered html entities |
imported>Malteneuss m Make structure of examples consistent |
||
Line 30: | Line 30: | ||
<syntaxhighlight lang="nix> | <syntaxhighlight lang="nix> | ||
caddy = { | services.caddy = { | ||
enable = true; | enable = true; | ||
virtualHosts."example.org".extraConfig = '' | virtualHosts."example.org".extraConfig = '' | ||
Line 50: | Line 50: | ||
<syntaxhighlight lang="nix> | <syntaxhighlight lang="nix> | ||
caddy = { | services.caddy = { | ||
enable = true; | enable = true; | ||
virtualHosts."example.org".extraConfig = '' | virtualHosts."example.org".extraConfig = '' | ||
Line 63: | Line 63: | ||
<syntaxhighlight lang="nix> | <syntaxhighlight lang="nix> | ||
caddy | services.caddy = { | ||
enable = true; | |||
virtualHosts."example.org" = { | |||
''; | extraConfig = '' | ||
redir https://www.example.org | |||
' '; | |||
serverAlias = [ "old.example.org" ]; | |||
}; | }; | ||
</syntaxhighlight> | </syntaxhighlight> |