From 72e03e6d85aa223810ff1d4fb0684d51e7b3f4f5 Mon Sep 17 00:00:00 2001 From: Marc Coquand Date: Thu, 16 May 2024 14:02:30 -0500 Subject: Add blobs --- configuration.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'configuration.nix') diff --git a/configuration.nix b/configuration.nix index 0ddc4c8..95668c8 100644 --- a/configuration.nix +++ b/configuration.nix @@ -1,6 +1,7 @@ { pkgs, inputs, ... }: let cgitCss = pkgs.writeText "cgit.css" (builtins.readFile ./cgit.css); + blobs = pkgs.readDir "blobs" in { imports = [ ./hardware-configuration.nix @@ -12,7 +13,8 @@ in { networking.nat.externalInterface = "eth0"; systemd.tmpfiles.rules = [ - "d /mnt/ 700 root root -" + "d /mnt/ 700 root root -"; + "d /www/data/releases/ 700 nginx nginx" ]; containers.ann = { @@ -144,6 +146,14 @@ in { }; + virtualHosts."blobs.mccd.space" = { + forceSSL = true; + enableACME = true; + locations."/" = { + root = "${blobs}"; + }; + }; + virtualHosts."rss.mccd.space" = { forceSSL = true; enableACME = true; -- cgit v1.2.3