feat(tazjin/nixos): serve radicle explorer UI on koptevo

Change-Id: Ie5075ee8d2663bfffb3f90388a46f9bc19f6e462
Reviewed-on: https://cl.tvl.fyi/c/depot/+/12488
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
This commit is contained in:
Vincent Ambo 2024-09-15 02:08:44 +03:00 committed by tazjin
parent e737488d92
commit 767bc726ef

View file

@ -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;