Merge pull request #277189 from anpin/fix/cloudflared-service
cloudflared: fixed missing configuration options
This commit is contained in:
commit
5caded32fe
@ -276,9 +276,11 @@ in
|
|||||||
ingressesSet = filterIngressSet tunnel.ingress;
|
ingressesSet = filterIngressSet tunnel.ingress;
|
||||||
ingressesStr = filterIngressStr tunnel.ingress;
|
ingressesStr = filterIngressStr tunnel.ingress;
|
||||||
|
|
||||||
fullConfig = {
|
fullConfig = filterConfig {
|
||||||
tunnel = name;
|
tunnel = name;
|
||||||
"credentials-file" = tunnel.credentialsFile;
|
"credentials-file" = tunnel.credentialsFile;
|
||||||
|
warp-routing = filterConfig tunnel.warp-routing;
|
||||||
|
originRequest = filterConfig tunnel.originRequest;
|
||||||
ingress =
|
ingress =
|
||||||
(map
|
(map
|
||||||
(key: {
|
(key: {
|
||||||
@ -294,6 +296,7 @@ in
|
|||||||
(attrNames ingressesStr))
|
(attrNames ingressesStr))
|
||||||
++ [{ service = tunnel.default; }];
|
++ [{ service = tunnel.default; }];
|
||||||
};
|
};
|
||||||
|
|
||||||
mkConfigFile = pkgs.writeText "cloudflared.yml" (builtins.toJSON fullConfig);
|
mkConfigFile = pkgs.writeText "cloudflared.yml" (builtins.toJSON fullConfig);
|
||||||
in
|
in
|
||||||
nameValuePair "cloudflared-tunnel-${name}" ({
|
nameValuePair "cloudflared-tunnel-${name}" ({
|
||||||
@ -322,5 +325,5 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
meta.maintainers = with maintainers; [ bbigras ];
|
meta.maintainers = with maintainers; [ bbigras anpin ];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user