about summary refs log tree commit diff
path: root/ops/modules/www/grep.tvl.fyi.nix
blob: 93ef5eabd27b1b5b5185e126f27f858cf31af976 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Experimental configuration for manually Livegrep.
{ config, ... }:

{
  imports = [
    ./base.nix
  ];

  config = {
    services.nginx.virtualHosts."grep.tvl.fyi" = {
      enableACME = true;
      forceSSL = true;

      locations."/" = {
        proxyPass = "http://127.0.0.1:${toString config.services.depot.livegrep.port}";
      };
    };
  };
}