mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
feat: equalise
This commit is contained in:
parent
90fe57fa33
commit
20da42728b
7 changed files with 53 additions and 29 deletions
|
|
@ -365,7 +365,11 @@
|
|||
mode = "0440";
|
||||
}
|
||||
) (filterAttrs (_: settings: settings.create_cert) config.domains);
|
||||
in networks // networks' // domains // domains';
|
||||
in networks // networks' // domains // domains' // {
|
||||
tailscale-key = {
|
||||
text = tf.resources.tailnet_key.refAttr "key";
|
||||
};
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts = let
|
||||
networkVirtualHosts = concatLists (mapAttrsToList (network: settings: map(domain: nameValuePair (if domain != "@" then domain else settings.zone) {
|
||||
|
|
@ -421,7 +425,7 @@
|
|||
|
||||
# otherwise authenticate with tailscale
|
||||
# to-do: --advertise-exit-node
|
||||
${tailscale}/bin/tailscale up -authkey ${tf.resources.tailnet_key.getAttr "key"}
|
||||
${tailscale}/bin/tailscale up -authkey $(cat ${config.secrets.files.tailscale-key.path})
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue