From a63f99135142e103afe51ee0e9b211f7a065633d Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 8 Oct 2023 23:31:10 +0300 Subject: 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 Reviewed-by: tazjin Tested-by: BuildkiteCI Autosubmit: tazjin --- ops/machines/whitby/default.nix | 3 +++ ops/modules/www/grep.tvl.fyi.nix | 22 ++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 ops/modules/www/grep.tvl.fyi.nix diff --git a/ops/machines/whitby/default.nix b/ops/machines/whitby/default.nix index 66409f97e43f..578cddc1095d 100644 --- a/ops/machines/whitby/default.nix +++ b/ops/machines/whitby/default.nix @@ -46,6 +46,9 @@ in (mod "www/tvl.su.nix") (mod "www/wigglydonke.rs.nix") + # experimental! + (mod "www/grep.tvl.fyi.nix") + (depot.third_party.agenix.src + "/modules/age.nix") ]; diff --git a/ops/modules/www/grep.tvl.fyi.nix b/ops/modules/www/grep.tvl.fyi.nix new file mode 100644 index 000000000000..8f16e8ccbdba --- /dev/null +++ b/ops/modules/www/grep.tvl.fyi.nix @@ -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"; + }; + }; + }; +} -- cgit 1.4.1