diff options
author | Vincent Ambo <tazjin@tvl.su> | 2024-09-14T23·08+0300 |
---|---|---|
committer | tazjin <tazjin@tvl.su> | 2024-09-14T23·47+0000 |
commit | 767bc726efa383561dd0805fc455672765ac7c8c (patch) | |
tree | 6787ce68d2340a2ea0834b94d2db63baaceb9b0a | |
parent | e737488d92a18b8b35b06d8e64a8a7236adb32d9 (diff) |
feat(tazjin/nixos): serve radicle explorer UI on koptevo r/8696
Change-Id: Ie5075ee8d2663bfffb3f90388a46f9bc19f6e462 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12488 Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su>
-rw-r--r-- | users/tazjin/nixos/koptevo/default.nix | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/users/tazjin/nixos/koptevo/default.nix b/users/tazjin/nixos/koptevo/default.nix index 7c94afe9f00f..426495d77fa3 100644 --- a/users/tazjin/nixos/koptevo/default.nix +++ b/users/tazjin/nixos/koptevo/default.nix @@ -233,6 +233,7 @@ in settings = { web.pinned.repositories = [ + "rad:z3r5zMi9U3az3i4cPKxMcA3K7xx9L" # depot "rad:z2mdnBK1tX6pibdBfRct3ThCgheHu" # tvix-go ]; @@ -263,7 +264,26 @@ in services.nginx.virtualHosts."rad.y.tazj.in" = { enableSSL = true; useACMEHost = "y.tazj.in"; - locations."/".proxyPass = "http://127.0.0.1:7235"; + locations = config.services.nginx.virtualHosts."rad.tazj.in".locations; + }; + + services.nginx.virtualHosts."src.tazj.in" = { + enableACME = true; + forceSSL = true; + + locations."/" = { + root = depot.third_party.radicle-explorer; + index = "index.html"; + extraConfig = '' + try_files $uri $uri/ /index.html; + ''; + }; + }; + + services.nginx.virtualHosts."src.y.tazj.in" = { + enableSSL = true; + useACMEHost = "y.tazj.in"; + locations = config.services.nginx.virtualHosts."src.tazj.in".locations; }; programs.mtr.enable = true; |