From 8dc6a72fe1f03de0e59b0d65e712cf2415a5edb8 Mon Sep 17 00:00:00 2001 From: Astrid Yu Date: Sat, 27 Apr 2024 11:48:25 -0700 Subject: [PATCH] diluc file hosting --- machines/diluc/configuration.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/machines/diluc/configuration.nix b/machines/diluc/configuration.nix index cddb45b3..dc1fc833 100644 --- a/machines/diluc/configuration.nix +++ b/machines/diluc/configuration.nix @@ -133,4 +133,17 @@ with lib; { device = "/dev/disk/by-uuid/ab29083b-5158-43d2-ab40-e3b40437bf31"; fsType = "ext4"; }; + + services.nginx.virtualHosts."diluc.h.astrid.tech" = { + enableACME = true; + + # Files are to be sticked into /var/www/diluc.h.astrid.tech/files. + locations."/files" = { + root = "/var/www/diluc.h.astrid.tech"; + extraConfig = '' + autoindex on; + allow all; + ''; + }; + }; }