move hdd to fwminex
This commit is contained in:
parent
687e468f90
commit
9269d2bda4
2
data.nix
2
data.nix
@ -242,7 +242,7 @@ rec {
|
||||
_acme-endpoint.bitwarden NS ns._acme-endpoint.bitwarden
|
||||
ns._acme-endpoint.bitwarden A ${vno1}
|
||||
|
||||
hdd A ${hosts."vno3-rp3b.servers.jakst".jakstIP}
|
||||
hdd 3600 A ${hosts."fwminex.servers.jakst".jakstIP}
|
||||
_acme-challenge.hdd CNAME _acme-endpoint.hdd
|
||||
_acme-endpoint.hdd NS ns._acme-endpoint.hdd
|
||||
ns._acme-endpoint.hdd A ${vno1}
|
||||
|
@ -649,6 +649,15 @@ in
|
||||
];
|
||||
}
|
||||
];
|
||||
|
||||
jakstpub = {
|
||||
enable = true;
|
||||
dataDir = "/home/motiejus/annex2/vno3-shared";
|
||||
requires = [ "data-shared.mount" ];
|
||||
uidgid = myData.uidgid.jakstpub;
|
||||
hostname = "hdd.jakstys.lt";
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -21,7 +21,7 @@ in
|
||||
services = {
|
||||
caddy = {
|
||||
enable = true;
|
||||
virtualHosts.":80".extraConfig = with myData.subnets; ''
|
||||
virtualHosts."hdd.jakstys.lt:80".extraConfig = with myData.subnets; ''
|
||||
root * ${cfg.dataDir}
|
||||
@denied not remote_ip ${vno1.cidr} ${vno3.cidr} ${tailscale.cidr}
|
||||
file_server browse {
|
||||
@ -64,11 +64,11 @@ in
|
||||
"create mask" = "0664";
|
||||
"directory mask" = "0775";
|
||||
};
|
||||
snapshots = defaults // {
|
||||
"path" = cfg.dataDir + "/.zfs/snapshot";
|
||||
"writeable" = "no";
|
||||
"read only" = "yes";
|
||||
};
|
||||
#snapshots = defaults // {
|
||||
# "path" = cfg.dataDir + "/.zfs/snapshot";
|
||||
# "writeable" = "no";
|
||||
# "read only" = "yes";
|
||||
#};
|
||||
};
|
||||
};
|
||||
|
||||
@ -102,7 +102,7 @@ in
|
||||
vno3.cidr
|
||||
];
|
||||
tcp = [
|
||||
80 # caddy above
|
||||
#80 # caddy above
|
||||
139 # smbd
|
||||
445 # smbd
|
||||
5357 # wsdd
|
||||
|
Loading…
Reference in New Issue
Block a user