diff options
author | Vincent Ambo <tazjin@tvl.su> | 2023-10-08T20·31+0300 |
---|---|---|
committer | tazjin <tazjin@tvl.su> | 2023-10-09T07·03+0000 |
commit | a63f99135142e103afe51ee0e9b211f7a065633d (patch) | |
tree | cd9a74f6f96a8c6f5d8915ea22dda29bd115630e /ops/modules/www/grep.tvl.fyi.nix | |
parent | dba62157e58bb6166f62c8670f4cf8142001bad0 (diff) |
feat(ops/www): add experimental grep.tvl.fyi setup r/6745
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>
Diffstat (limited to 'ops/modules/www/grep.tvl.fyi.nix')
-rw-r--r-- | ops/modules/www/grep.tvl.fyi.nix | 22 |
1 files changed, 22 insertions, 0 deletions
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"; + }; + }; + }; +} |