Skip to content

Commit

Permalink
diluc file hosting
Browse files Browse the repository at this point in the history
  • Loading branch information
ifd3f committed Apr 27, 2024
1 parent ca18f3b commit 8dc6a72
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions machines/diluc/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
'';
};
};
}

0 comments on commit 8dc6a72

Please sign in to comment.