diff options
author | sefidel <contact@sefidel.net> | 2024-03-07 20:39:34 +0900 |
---|---|---|
committer | sefidel <contact@sefidel.net> | 2024-03-07 20:43:56 +0900 |
commit | 09edb5202ad52e6fbf9580683a0a0c4b85e3cfe8 (patch) | |
tree | b12ad53558724c8b1b70822c38be749b6ab42eea /modules | |
parent | b974c886b40f89242e8ce51af54a2b50db91050e (diff) | |
download | nixrc-09edb5202ad52e6fbf9580683a0a0c4b85e3cfe8.tar.gz nixrc-09edb5202ad52e6fbf9580683a0a0c4b85e3cfe8.zip |
fix(modules/expose): fix cloudflare tunnel
This commit fixes cloudflare tunnel connections failing with `tls: unrecognized name`, which was caused by the https endpoint not having a valid certificate for 'localhost'.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/expose.nix | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/modules/expose.nix b/modules/expose.nix index 3598777..85fdcca 100644 --- a/modules/expose.nix +++ b/modules/expose.nix @@ -83,10 +83,7 @@ in services.cloudflared.tunnels."${cfg.cloudflareUUID}" = { credentialsFile = cfg.secrets.cloudflare-credentials; ingress = mapAttrs - (_: v: - if v.configureNginx - then "https://localhost:443" - else v.to) + (_: v: v.to) (filterAttrs (_: v: v.cf) cfg.routes); } // optionalAttrs (cfg.ssl.enable) { # TODO: This seems to have no effect. Remove? |