From 10c2866ccd61bedb9fe82f0a7f5284af91a301bd Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 15 Sep 2024 02:57:17 +0300 Subject: fix(tazjin/nixos): set rad.tazj.in as preferred seed in explorer This requires overriding build-time configuration, so I've added a little fixed point that takes care of that. Change-Id: Ie990e362c6e00aa6e3be66b04af4b62034b03515 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12489 Tested-by: BuildkiteCI Reviewed-by: tazjin Autosubmit: tazjin --- users/tazjin/nixos/koptevo/default.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'users/tazjin/nixos') diff --git a/users/tazjin/nixos/koptevo/default.nix b/users/tazjin/nixos/koptevo/default.nix index 426495d77fa3..86abae119449 100644 --- a/users/tazjin/nixos/koptevo/default.nix +++ b/users/tazjin/nixos/koptevo/default.nix @@ -270,9 +270,13 @@ in services.nginx.virtualHosts."src.tazj.in" = { enableACME = true; forceSSL = true; + root = depot.third_party.radicle-explorer.withPreferredSeeds [{ + hostname = "rad.tazj.in"; + port = 443; + scheme = "https"; + }]; locations."/" = { - root = depot.third_party.radicle-explorer; index = "index.html"; extraConfig = '' try_files $uri $uri/ /index.html; @@ -283,6 +287,12 @@ in services.nginx.virtualHosts."src.y.tazj.in" = { enableSSL = true; useACMEHost = "y.tazj.in"; + root = depot.third_party.radicle-explorer.withPreferredSeeds [{ + hostname = "rad.y.tazj.in"; + port = 443; + scheme = "https"; + }]; + locations = config.services.nginx.virtualHosts."src.tazj.in".locations; }; -- cgit 1.4.1