diff --git a/nixbld-etc-nixos/configuration.nix b/nixbld-etc-nixos/configuration.nix index 18c3ad0..ce7fc29 100644 --- a/nixbld-etc-nixos/configuration.nix +++ b/nixbld-etc-nixos/configuration.nix @@ -773,6 +773,10 @@ in ''; }; }; + "files.m-labs.hk" = { + forceSSL = true; + enableACME = true; + }; "nmigen.org" = { addSSL = true; useACMEHost = "nixbld.m-labs.hk"; @@ -860,5 +864,13 @@ in certificateScheme = 3; }; + services.nextcloud = { + enable = true; + package = pkgs.nextcloud24; + hostName = "files.m-labs.hk"; + https = true; + config.adminpassFile = "/etc/nixos/secret/nextcloud_pass.txt"; + }; + system.stateVersion = "21.05"; } diff --git a/nixbld-etc-nixos/named/m-labs.hk b/nixbld-etc-nixos/named/m-labs.hk index ce47046..dc73dd2 100644 --- a/nixbld-etc-nixos/named/m-labs.hk +++ b/nixbld-etc-nixos/named/m-labs.hk @@ -1,7 +1,7 @@ $TTL 7200 @ SOA 42-200-147-171.static.imsbiz.com. sb.m-labs.hk. ( - 2022062801 + 2022063004 7200 3600 86400 @@ -30,6 +30,7 @@ hooks CNAME @ forum CNAME @ perso CNAME @ rt CNAME @ +files CNAME @ rpi-1 AAAA 2001:470:f821:1:dea6:32ff:fe8a:6a93 rpi-2 AAAA 2001:470:f821:1:ba27:ebff:fef0:e9e6