about summary refs log tree commit diff
path: root/ops/modules/www
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2021-08-13T00·50+0300
committertazjin <mail@tazj.in>2021-08-13T10·57+0000
commit7c16a7115654a2061ddfe61055eef181474eeab3 (patch)
tree8c9345a39a31f7566882b0b888172a353cf29f5e /ops/modules/www
parent5550180e7ea55a4987b305862231e622639d33a6 (diff)
feat(ops/www): Point images.tvl.* at Nixery r/2726
Change-Id: I39f979c68e7b74f6da6a7da0f07aaa470886d451
Reviewed-on: https://cl.tvl.fyi/c/depot/+/3346
Tested-by: BuildkiteCI
Reviewed-by: flokli <flokli@flokli.de>
Reviewed-by: sterni <sternenseemann@systemli.org>
Diffstat (limited to 'ops/modules/www')
-rw-r--r--ops/modules/www/images.tvl.fyi.nix22
1 files changed, 22 insertions, 0 deletions
diff --git a/ops/modules/www/images.tvl.fyi.nix b/ops/modules/www/images.tvl.fyi.nix
new file mode 100644
index 000000000000..7d027b2991ab
--- /dev/null
+++ b/ops/modules/www/images.tvl.fyi.nix
@@ -0,0 +1,22 @@
+{ config, ... }:
+
+{
+  imports = [
+    ./base.nix
+  ];
+
+  config = {
+    services.nginx.virtualHosts."images.tvl.fyi" = {
+      serverName = "images.tvl.fyi";
+      serverAliases = [ "images.tvl.su" ];
+      enableACME = true;
+      forceSSL = true;
+
+      extraConfig = ''
+        location / {
+          proxy_pass http://localhost:${toString config.services.depot.nixery.port};
+        }
+      '';
+    };
+  };
+}