add dufs (webdav) module
This commit is contained in:
parent
71b4968d79
commit
bf072e60a6
3 changed files with 82 additions and 0 deletions
|
|
@ -9,6 +9,7 @@
|
|||
../../../modules/traefik.nix
|
||||
../../../modules/borg/client.nix
|
||||
../../../modules/login-display.nix
|
||||
../../../modules/dufs.nix
|
||||
];
|
||||
|
||||
# GRUB bootloader with ZFS support
|
||||
|
|
@ -263,4 +264,11 @@
|
|||
};
|
||||
};
|
||||
|
||||
# Dufs WebDAV file server
|
||||
services.dufs = {
|
||||
sharedPath = "/mnt/storage/Media/nsfw";
|
||||
port = 5099;
|
||||
auth = "yanlin:jbaRRsciNUXTRqswdggKPICG27TNvyTRUfod2RBD";
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -111,6 +111,19 @@
|
|||
};
|
||||
};
|
||||
|
||||
# Dufs file server
|
||||
files = {
|
||||
rule = "Host(`files.yanlincs.com`)";
|
||||
entrypoints = "websecure";
|
||||
service = "files";
|
||||
tls = {
|
||||
certResolver = "cloudflare";
|
||||
domains = [{
|
||||
main = "*.yanlincs.com";
|
||||
}];
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
services = {
|
||||
# Redirect service
|
||||
|
|
@ -185,6 +198,15 @@
|
|||
};
|
||||
};
|
||||
|
||||
# Dufs backend (via WireGuard)
|
||||
files = {
|
||||
loadBalancer = {
|
||||
servers = [{
|
||||
url = "http://10.2.2.20:5099";
|
||||
}];
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
middlewares = {
|
||||
# Redirect middleware
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue