caddy: federate caddy site configs
This commit is contained in:
parent
943e9d4cb7
commit
55d619a4ce
6 changed files with 105 additions and 97 deletions
|
|
@ -9,6 +9,15 @@
|
|||
|
||||
sops.secrets."authentik/secrets.env".restartUnits = [ "authentik.service" ];
|
||||
|
||||
services.caddy.virtualHosts."authentik.wo2wz.fyi".extraConfig =
|
||||
assert config.services.caddy.enable;
|
||||
''
|
||||
import default-settings
|
||||
import cloudflare-tls
|
||||
|
||||
reverse_proxy localhost:9000
|
||||
'';
|
||||
|
||||
services.authentik = {
|
||||
enable = true;
|
||||
environmentFile = config.sops.secrets."authentik/secrets.env".path;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue