Add local proxy to webdav
This commit is contained in:
parent
46b61626a6
commit
bb38eee42f
1 changed files with 24 additions and 1 deletions
|
|
@ -15,7 +15,21 @@
|
|||
}];
|
||||
};
|
||||
};
|
||||
|
||||
# WebDAV file server
|
||||
files = {
|
||||
rule = "Host(`files.${config.networking.hostName}.yanlincs.com`)";
|
||||
entrypoints = "websecure";
|
||||
service = "files";
|
||||
tls = {
|
||||
certResolver = "cloudflare";
|
||||
domains = [{
|
||||
main = "*.${config.networking.hostName}.yanlincs.com";
|
||||
}];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
services = {
|
||||
syncthing = {
|
||||
loadBalancer = {
|
||||
|
|
@ -24,6 +38,15 @@
|
|||
}];
|
||||
};
|
||||
};
|
||||
|
||||
# WebDAV file server
|
||||
files = {
|
||||
loadBalancer = {
|
||||
servers = [{
|
||||
url = "http://localhost:5009";
|
||||
}];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue