Giter Site home page Giter Site logo

sciactive / nephele Goto Github PK

View Code? Open in Web Editor NEW
59.0 59.0 2.0 6.13 MB

A pluggable WebDAV, CardDAV, and CalDAV server for Node.js and Express.

License: Apache License 2.0

Shell 0.03% JavaScript 0.72% TypeScript 93.97% Svelte 5.06% Dockerfile 0.22%

nephele's People

Contributors

hperrin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

k4gt cloudron-io

nephele's Issues

urlToRelativePath() in Adapters seems wrong if express mountpoint is not `/`

Hi, first off, thanks for the great module!

The code works fine when mounted on /.

I was trying to mount nephele in a subpath on express:

app.use('/webdav', nephele({
            adapter: new FileSystemAdapter({
                root: '/data/root/',
            }),
            authenticator: new InsecureAuthenticator(),
        })
}; 

This in turn will, as expected, hit https://github.com/sciactive/nephele/blob/master/packages/adapter-file-system/src/Adapter.ts#L87 in various places.

The issue is, that the url in express.js would already have the mountpoint (ie baseurl) removed from the path when hitting nephele. So the check for path having baseUrl fails. Skipping that prefix check and also removing the subsequent .substring(decodeURIComponent(baseUrl.pathname).length) will fix the issue.

Further code handles listing and at least retrieving files and contents fine, but after some debugging, I couldn't quite find how the absolute paths (which are wrong, as they contain the mountpoint) are constructed. Writing files does not work as the absolute path ends up being wrong.

Maybe I am hitting some unsupported path here, but should nephele work with the filesystem adapter on an express mountpoint in the first place?

Happy to do further debugging if this is not easily reproducible or I have some more pointers in the right direction.

Is it possible to achieve a link based FS?

I'm currently using webdav-server but I'm facing problems when passing a direct dl link connected to a file. If the file is too big, the stream is loaded into memory and it breaks. I assume the issue lies in the fact that its trying to load a huge amount of data into memory. My biggest problem is media files such as MP4 etc.

Just wondering if there's a way to only load parts of what the user requested, if its a media file for example?

And is this doable in nephele?

Docker and `AUTH=false` doesn't work

I tried all variances of using AUTH=false, by docker-compose.yaml, inline docker run command, S3 storage, normal storage,... but it does not seems to work.
Setting AUTH_USERNAME or using .htpasswd does work normally.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.