Merge pull request #277189 from anpin/fix/cloudflared-service

cloudflared: fixed missing configuration options
This commit is contained in:
Peder Bergebakken Sundt 2024-02-10 12:45:08 +01:00 committed by GitHub
commit 5caded32fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -276,9 +276,11 @@ in
ingressesSet = filterIngressSet tunnel.ingress;
ingressesStr = filterIngressStr tunnel.ingress;
fullConfig = {
fullConfig = filterConfig {
tunnel = name;
"credentials-file" = tunnel.credentialsFile;
warp-routing = filterConfig tunnel.warp-routing;
originRequest = filterConfig tunnel.originRequest;
ingress =
(map
(key: {
@ -294,6 +296,7 @@ in
(attrNames ingressesStr))
++ [{ service = tunnel.default; }];
};
mkConfigFile = pkgs.writeText "cloudflared.yml" (builtins.toJSON fullConfig);
in
nameValuePair "cloudflared-tunnel-${name}" ({
@ -322,5 +325,5 @@ in
};
};
meta.maintainers = with maintainers; [ bbigras ];
meta.maintainers = with maintainers; [ bbigras anpin ];
}