blob: 9a4c1261ed2032c25c1ac1d0e6fefba777f0a63c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
{ pkgs, ... }:
let
port = "6060";
in
{
services.nginx.virtualHosts."files.niedzwiedzinski.cyou" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://localhost:${port}";
};
};
services.webdav = {
enable = true;
configFile = "/etc/webdav.yaml";
#settings = {
#address = "0.0.0.0";
#port = port;
#scope = "/srv/files";
#modify = true;
#auth = true;
#users = [
#{
#username = "patryk";
#password = "test";
#}
#];
#};
};
}
|