centralise tailscale domain
1 file changed, 5 insertions(+), 6 deletions(-)
changed files
M system/roles/readeck.nix → system/roles/readeck.nix
@@ -3,8 +3,7 @@ config, ... }: let - domain = config.networking.domain; - ts-domain = "fin-marlin.ts.net"; + data = import ../../data; in { age.secrets.readeck.file = ../../secrets/readeck.age;@@ -15,13 +14,13 @@ environmentFile = config.age.secrets.readeck.path; settings = { server = { host = "unix:/run/web/readeck.sock?mode=0660"; - base_url = "https://read.${ts-domain}"; + base_url = "https://read.${data.tailnet}"; }; email = { host = "localhost"; port = 587; - from = "readeck@${domain}"; - from_noreply = "noreply+readeck@${domain}"; + from = "readeck@${data.pubnet}"; + from_noreply = "noreply+readeck@${data.pubnet}"; }; auth.forwarded = { enabled = true;@@ -33,7 +32,7 @@ }; }; services.caddy.virtualHosts = { - "read.${ts-domain}" = { + "read.${data.tailnet}" = { extraConfig = '' bind tailscale/read tls {