server host config for dns and share
This commit is contained in:
parent
e010bff600
commit
bef8d4784c
7 changed files with 153 additions and 2 deletions
38
modules/system/homelab/share.nix
Normal file
38
modules/system/homelab/share.nix
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
{ ... }: {
|
||||
services = {
|
||||
httpd = {
|
||||
enable = true;
|
||||
virtualHosts."cdn" = {
|
||||
listen = [{ ip = "*"; port = 3000; }];
|
||||
documentRoot = "/srv/dev-disk-by-uuid-f1ee1d17-e852-4e02-ae86-eaf6116a2aeb/NAS";
|
||||
extraConfig = ''
|
||||
Options +Indexes +FollowSymLinks
|
||||
Require all granted
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
samba = {
|
||||
enable = true;
|
||||
settings = {
|
||||
global = {
|
||||
workgroup = "WORKGROUP";
|
||||
"disable netbios" = "yes";
|
||||
"allow insecure wide links" = "yes";
|
||||
"server min protocol" = "SMB2_02";
|
||||
};
|
||||
"NAS" = {
|
||||
path = "/srv/dev-disk-by-uuid-f1ee1d17-e852-4e02-ae86-eaf6116a2aeb/NAS/";
|
||||
browseable = "yes";
|
||||
"read only" = "no";
|
||||
"create mask" = "0664";
|
||||
"force create mode" = "0664";
|
||||
"directory mask" = "0775";
|
||||
"force directory mode" = "0775";
|
||||
"follow symlinks" = "yes";
|
||||
"wide links" = "yes";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue