about summary refs log tree commit diff
path: root/ops/modules/www/grep.tvl.fyi.nix
blob: 8f16e8ccbdbac67a55678c317d9b56383131e2cb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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";
      };
    };
  };
}