diff options
| author | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2026-06-23 20:50:07 -0500 |
|---|---|---|
| committer | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2026-06-23 20:50:07 -0500 |
| commit | f9f970d8364c220c9357f4791fdca2ced72fa804 (patch) | |
| tree | 6d2ef5e2a3e7dfa8f3640b74181a8bb044e74599 /modules/services/nixos/mkCaddyCfg.nix | |
| parent | 9ef174152929b038b01bc2f261b719a57cdad654 (diff) | |
no more mkCaddyConfig, manually specify ports, no more manual /etc/hosts, started using dnsmasq instead. all works!
Diffstat (limited to 'modules/services/nixos/mkCaddyCfg.nix')
| -rw-r--r-- | modules/services/nixos/mkCaddyCfg.nix | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/modules/services/nixos/mkCaddyCfg.nix b/modules/services/nixos/mkCaddyCfg.nix deleted file mode 100644 index 02b9a0a..0000000 --- a/modules/services/nixos/mkCaddyCfg.nix +++ /dev/null @@ -1,30 +0,0 @@ -cfg: let - caddyConfig = - if cfg ? reverseProxy && cfg.reverseProxy == true - then ''reverse_proxy ${cfg.listenAddr}:${toString cfg.port}'' - else cfg.manualCaddyConfig; -in { - networking.extraHosts = - if cfg.privateUrl != null - then "127.0.0.1 ${cfg.privateUrl}" - else ""; - - services.caddy.virtualHosts = - ( - if cfg.publicUrl != null - then { - ${cfg.publicUrl}.extraConfig = caddyConfig; - } - else {} - ) - // ( - if cfg.privateUrl != null - then { - "${cfg.privateUrl}".extraConfig = '' - tls internal - ${caddyConfig} - ''; - } - else {} - ); -} |
