mirror of
https://github.com/kmein/niveum
synced 2026-03-19 11:31:09 +01:00
feat(moodle-dl): serve via retiolum
This commit is contained in:
@@ -82,6 +82,21 @@ in
|
|||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ 2049 ];
|
networking.firewall.allowedTCPPorts = [ 2049 ];
|
||||||
|
|
||||||
|
services.nginx.virtualHosts."moodle.kmein.r" =
|
||||||
|
let
|
||||||
|
identity = lib.strings.fileContents <secrets/eduroam/identity>;
|
||||||
|
password = lib.strings.fileContents <secrets/eduroam/password>;
|
||||||
|
in {
|
||||||
|
basicAuth."${identity}" = password;
|
||||||
|
locations."/" = {
|
||||||
|
root = config.services.moodle-dl.directory;
|
||||||
|
extraConfig = ''
|
||||||
|
autoindex on;
|
||||||
|
charset UTF-8;
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
services.nfs.server = {
|
services.nfs.server = {
|
||||||
enable = true;
|
enable = true;
|
||||||
exports = let machines = with (import <niveum/lib>).retiolumAddresses; [kabsa manakish]; in ''
|
exports = let machines = with (import <niveum/lib>).retiolumAddresses; [kabsa manakish]; in ''
|
||||||
|
|||||||
Reference in New Issue
Block a user