about summary refs log tree commit diff
path: root/ops/nixos/www/cl.tvl.fyi.nix
diff options
context:
space:
mode:
Diffstat (limited to 'ops/nixos/www/cl.tvl.fyi.nix')
-rw-r--r--ops/nixos/www/cl.tvl.fyi.nix23
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;
+        }
+      '';
+    };
+  };
+}