diff options
Diffstat (limited to '')
-rw-r--r-- | ops/nixos/www/cl.tvl.fyi.nix | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/ops/nixos/www/cl.tvl.fyi.nix b/ops/nixos/www/cl.tvl.fyi.nix new file mode 100644 index 000000000000..9383f38403da --- /dev/null +++ b/ops/nixos/www/cl.tvl.fyi.nix @@ -0,0 +1,23 @@ +{ config, ... }: + +{ + imports = [ + ./base.nix + ]; + + config = { + services.nginx.virtualHosts.gerrit = { + serverName = "cl.tvl.fyi"; + enableACME = true; + forceSSL = true; + + extraConfig = '' + location / { + proxy_pass http://localhost:4778; + proxy_set_header X-Forwarded-For $remote_addr; + proxy_set_header Host $host; + } + ''; + }; + }; +} |