feat(ops/www): add experimental grep.tvl.fyi setup

This points a reverse proxy at a manually run, highly experimental
container. The actual setup is not yet nixified.

Change-Id: I8e1d5ec94a3f1e9b4b0bfc7ffd2a9badf4e79291
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9577
Reviewed-by: flokli <flokli@flokli.de>
Reviewed-by: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
Autosubmit: tazjin <tazjin@tvl.su>
This commit is contained in:
Vincent Ambo 2023-10-08 23:31:10 +03:00 committed by tazjin
parent dba62157e5
commit a63f991351
2 changed files with 25 additions and 0 deletions

View file

@ -46,6 +46,9 @@ in
(mod "www/tvl.su.nix") (mod "www/tvl.su.nix")
(mod "www/wigglydonke.rs.nix") (mod "www/wigglydonke.rs.nix")
# experimental!
(mod "www/grep.tvl.fyi.nix")
(depot.third_party.agenix.src + "/modules/age.nix") (depot.third_party.agenix.src + "/modules/age.nix")
]; ];

View file

@ -0,0 +1,22 @@
# Experimental configuration for manually Livegrep.
{ config, ... }:
{
imports = [
./base.nix
];
config = {
# Short link support (i.e. plain http://at) for users with a
# configured tvl.fyi/tvl.su search domain.
services.nginx.virtualHosts."grep.tvl.fyi" = {
enableACME = true;
forceSSL = true;
locations."/" = {
# experimental: manually run Docker container
proxyPass = "http://172.17.0.3:8910";
};
};
};
}