diff --git a/bin/deploy b/bin/deploy index 01ec8b1..e0a9ab6 100755 --- a/bin/deploy +++ b/bin/deploy @@ -47,7 +47,7 @@ if [ "$1" = "watch" ]; then for f in pull_requests/*.json; do pr=$(basename $f .json) if [ "$(jq -r '.status' <$f)" = "open" ]; then - curl -s -o - https://pr-status.humpback-trout.ts.net/${pr} | jq -rS 'del(.queryTime)' >pull_requests/${pr}.json + curl -s -o - https://pr-status.otter-alligator.ts.net/${pr} | jq -rS 'del(.queryTime)' >pull_requests/${pr}.json msg "Updated watch for ${pr}: $(jq -r .title pull_requests/${pr}.json + curl -s -o - https://pr-status.otter-alligator.ts.net/${pr} | jq -rS 'del(.queryTime)' >pull_requests/${pr}.json msg "Added watch for ${pr}: $(jq -r .title /dev/null 2>&1 ''; in @@ -683,7 +683,7 @@ in } { job_name = "h"; - static_configs = [{ targets = [ "100.64.247.69:9002" ]; }]; + static_configs = [{ targets = [ "100.83.77.133:9002" ]; }]; } { job_name = "namish"; @@ -815,10 +815,10 @@ in proxyWebsockets = true; }; }; - "box.humpback-trout.ts.net" = { + "box.otter-alligator.ts.net" = { forceSSL = true; - sslCertificateKey = "/etc/nixos/secrets/box.humpback-trout.ts.net.key"; - sslCertificate = "/etc/nixos/secrets/box.humpback-trout.ts.net.crt"; + sslCertificateKey = "/etc/nixos/secrets/box.otter-alligator.ts.net.key"; + sslCertificate = "/etc/nixos/secrets/box.otter-alligator.ts.net.crt"; locations."/photos" = { proxyPass = "http://localhost:2343"; diff --git a/hosts/faf/default.nix b/hosts/faf/default.nix index 8049064..80386d5 100644 --- a/hosts/faf/default.nix +++ b/hosts/faf/default.nix @@ -33,7 +33,7 @@ in allowedTCPPorts = [ 22 53 config.services.prometheus.exporters.node.port ]; allowedUDPPorts = [ 53 ]; }; - hosts = { "100.122.61.43" = [ "nix-binary-cache.humpback-trout.ts.net" ]; }; + hosts = { "100.74.8.55" = [ "nix-binary-cache.otter-alligator.ts.net" ]; }; }; users.users = { @@ -111,24 +111,24 @@ in enable = true; settings = { server = { - interface = [ "100.64.130.122" ]; + interface = [ "100.80.94.131" ]; access-control = [ "100.64.0.0/10 allow" ]; }; local-zone = ''"bold.daemon." static''; local-data = [ - ''"books.bold.daemon. IN A 100.120.151.126"'' - ''"headphones.bold.daemon. IN A 100.120.151.126"'' - ''"jelly.bold.daemon. IN A 100.120.151.126"'' - ''"lidarr.bold.daemon. IN A 100.120.151.126"'' - ''"nzb.bold.daemon. IN A 100.120.151.126"'' - ''"prowlarr.bold.daemon. IN A 100.120.151.126"'' - ''"radarr.bold.daemon. IN A 100.120.151.126"'' - ''"reddit.bold.daemon. IN A 100.120.151.126"'' - ''"sonarr.bold.daemon. IN A 100.120.151.126"'' - ''"readarr.bold.daemon. IN A 100.120.151.126"'' - ''"home.bold.daemon. IN A 100.120.151.126"'' - ''"graph.bold.daemon. IN A 100.120.151.126"'' - ''"invidious.bold.daemon. IN A 100.120.151.126"'' + ''"books.bold.daemon. IN A 100.115.16.150"'' + ''"headphones.bold.daemon. IN A 100.115.16.150"'' + ''"jelly.bold.daemon. IN A 100.115.16.150"'' + ''"lidarr.bold.daemon. IN A 100.115.16.150"'' + ''"nzb.bold.daemon. IN A 100.115.16.150"'' + ''"prowlarr.bold.daemon. IN A 100.115.16.150"'' + ''"radarr.bold.daemon. IN A 100.115.16.150"'' + ''"reddit.bold.daemon. IN A 100.115.16.150"'' + ''"sonarr.bold.daemon. IN A 100.115.16.150"'' + ''"readarr.bold.daemon. IN A 100.115.16.150"'' + ''"home.bold.daemon. IN A 100.115.16.150"'' + ''"graph.bold.daemon. IN A 100.115.16.150"'' + ''"invidious.bold.daemon. IN A 100.115.16.150"'' ''"router.bold.daemon. IN A 10.6.0.1"'' ]; }; diff --git a/hosts/h/default.nix b/hosts/h/default.nix index b88bddb..3ae3ed9 100644 --- a/hosts/h/default.nix +++ b/hosts/h/default.nix @@ -295,7 +295,7 @@ in enable = true; reverseName = "pr-status"; reversePort = 3003; - envFile = config.sops.secrets.pr_status_env.path; + #envFile = config.sops.secrets.pr_status_env.path; }; sliding-sync = { enable = true; @@ -317,7 +317,7 @@ in #}; tsvnstat = { enable = true; - keyPath = "${config.sops.secrets.router_stats_ts_key.path}"; + #keyPath = "${config.sops.secrets.router_stats_ts_key.path}"; }; yarr.enable = true; gotosocial = { @@ -358,7 +358,7 @@ in grpc_listen_port = 0; }; positions = { filename = "/tmp/positions.yaml"; }; - clients = [{ url = "http://box.humpback-trout.ts.net:3030/loki/api/v1/push"; }]; + clients = [{ url = "http://box.otter-alligator.ts.net:3030/loki/api/v1/push"; }]; scrape_configs = [ { job_name = "journal"; diff --git a/modules/ts-rev-prox.nix b/modules/ts-rev-prox.nix index 1b90476..8ad4590 100644 --- a/modules/ts-rev-prox.nix +++ b/modules/ts-rev-prox.nix @@ -99,7 +99,7 @@ in ExecStart = "${cfg.package}/bin/ts-reverse-proxy -name ${cfg.reverseName} -port ${ toString cfg.reversePort } -ip ${cfg.reverseIP}"; - EnvironmentFile = cfg.envFile; + #EnvironmentFile = cfg.envFile; }; }; }; diff --git a/modules/tsvnstat.nix b/modules/tsvnstat.nix index 7802eae..703df50 100644 --- a/modules/tsvnstat.nix +++ b/modules/tsvnstat.nix @@ -22,7 +22,7 @@ in }; keyPath = mkOption { - type = types.path; + type = with types; oneOf [ path str ]; default = ""; description = '' Path to the TS API key file @@ -87,7 +87,9 @@ in CacheDirectory = "tsvnstat"; CacheDirectoryMode = "0755"; - ExecStart = "${cfg.package}/bin/tsvnstat -vnstati ${pkgs.vnstat}/bin/vnstati -name ${cfg.nodeName} -key ${cfg.keyPath}"; + ExecStart = '' + ${cfg.package}/bin/tsvnstat -vnstati ${pkgs.vnstat}/bin/vnstati -name ${cfg.nodeName} ${lib.optionalString (cfg.keyPath != "") "-key ${cfg.keyPath}"} + ''; }; }; };