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;
|
||||
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 ];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user