Add local proxy to webdav

This commit is contained in:
Yan Lin 2025-09-12 09:09:54 +02:00
parent 46b61626a6
commit bb38eee42f

View file

@ -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 = { services = {
syncthing = { syncthing = {
loadBalancer = { loadBalancer = {
@ -24,6 +38,15 @@
}]; }];
}; };
}; };
# WebDAV file server
files = {
loadBalancer = {
servers = [{
url = "http://localhost:5009";
}];
};
};
}; };
}; };
}; };