diff options
| author | seth <[email protected]> | 2024-07-09 06:45:24 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2024-07-09 15:38:51 -0400 |
| commit | 6368272cdeec8c69800b4e7645402914f48e5c33 (patch) | |
| tree | f5e321fac25da065bff0480a63b0031eee00a031 /modules/nixos/server/mixins/cloudflared.nix | |
| parent | 74159b94f662fc737f5614bdd29fd76bf27cee27 (diff) | |
modules: better document most things
Diffstat (limited to 'modules/nixos/server/mixins/cloudflared.nix')
| -rw-r--r-- | modules/nixos/server/mixins/cloudflared.nix | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/nixos/server/mixins/cloudflared.nix b/modules/nixos/server/mixins/cloudflared.nix index 43da9de..9a56aaa 100644 --- a/modules/nixos/server/mixins/cloudflared.nix +++ b/modules/nixos/server/mixins/cloudflared.nix @@ -12,13 +12,13 @@ in options.server.mixins.cloudflared = { enable = lib.mkEnableOption "cloudflared mixin"; tunnelName = lib.mkOption { + description = '' + Name of the default tunnel being created + ''; type = lib.types.str; default = "${config.networking.hostName}-nginx"; defaultText = lib.literalExpression "\${config.networking.hostName}-nginx"; example = "my-tunnel"; - description = '' - Name of the default tunnel being created - ''; }; manageSecrets = lib.mkEnableOption "automatic management of secrets" // { @@ -35,6 +35,7 @@ in tunnels.${cfg.tunnelName} = { default = "http_status:404"; + # map our virtualHosts from nginx to ingress rules ingress = lib.mapAttrs (_: _: { service = "http://localhost:${toString nginx.defaultHTTPListenPort}"; }) nginx.virtualHosts; |
