Spaces:
Running
Running
File size: 465 Bytes
240dc3d 16c20b7 240dc3d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
// Proxy mode, multi user
import { WebDAVServer } from "@filen/webdav";
const hostname = "0.0.0.0";
const port = 8080;
const https = false;
const server = new WebDAVServer({
hostname,
port,
https,
// Omit the user object
authMode: "basic" // Only basic auth is supported in proxy mode
});
await server.start();
console.log(
`WebDAV server started on ${https ? "https" : "http"}://${hostname === "0.0.0.0" ? "local.webdav.filen.io" : hostname}:${port}`
);
|