Giter VIP home page Giter VIP logo

lighttpd-webdavjs-conf's People

Contributors

code-otto avatar

Watchers

 avatar

lighttpd-webdavjs-conf's Issues

Suggestion: Write so as to be able to add on to existing configuration

Thanks for this fantastic configuration! It was extremely helpful getting a nice WebDAV interface on my OpenWrt router.

The Wiki for OpenWrt has a /very/ basic configuration which requires a copy of webdav-js for each served folder. My intention is to update the wiki with an adaptation of your solution (with attribution). It has to, however, play nicely with other configurations since lighttpd is also serving up my router's UI.

In the short term, I was able to get it to play nicely by surrounding the WebDAV configuration with a $SERVER directive. I then added in some basic auth and proceeded with an adaptation of your config...

$SERVER["socket"] == "192.168.11.1:8080" {

  auth.backend = "plain"
  auth.backend.plain.userfile = "/etc/lighttpd/webdav.shadow"
  auth.require = (
    "/" => ("method" => "basic", "realm" => "disk", "require" => "valid-user")
  )
  auth.cache = ("max-age" => "3600")

  #Directory to be served over WebDAV
  server.document-root = "/mnt/trunk/"
  #Enable/disable read-only access
  webdav.is-readonly = "disable"

  ...

I wanted to suggest that your solution would be much more universal if it was designed as drop-in configuration to tack onto existing configurations by adding, say, a 50-weddav.conf file into /etc/lighttpd/conf.d and was written such that it complements existing setups. So it could be set to work with address/webdav/ and address/webdav/basic/. As is stands, it assumes it will be all that lighttp is doing.

In any case, thanks again for doing this. It has been a great help.

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.