Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: webdav integration #3534

Merged
merged 3 commits into from
Oct 9, 2024

Commits on Oct 4, 2024

  1. feat: webdav integration

    This patch provides an optional way to integrate an external WebDAV server so that the super-productivity container can serve as a WebDAV server with base url http://localhost/webdav/ . It includes the following changes:
    
    **Replace the default nginx config file**
    Besides serving the web app, the new nginx config file also forwards all the requests with paths starting with "/webdav/" to a backend WebDAV server specified by the environment variable WEBDAV_BACKEND. Note that during forwarding, the path prefix "/webdav" will be removed.
    
    **Use hacdias/webdav as default WebDAV backend server**
    The docker-compose.yaml provides an example setup to use the docker image [hacdias/webdav](https://github.com/hacdias/webdav) as the WebDAV backend server. An example for the configuration of the WebDAV server is also provided in webdav.yaml.
    kkoyung committed Oct 4, 2024
    Configuration menu
    Copy the full SHA
    c3622fc View commit details
    Browse the repository at this point in the history
  2. fix: avoid nginx error when webdav is missing

    By default, nginx refuses to start if the upstream host is not found.
    Since the webdav upstream server is optional here, we want nginx to
    start even if the webdav upstream server is missing. The trick here is
    to put the upstream url in a variable first so that nginx will not check
    whether the upstream host exists on start and start anyway.
    kkoyung committed Oct 4, 2024
    Configuration menu
    Copy the full SHA
    4105523 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    28d394c View commit details
    Browse the repository at this point in the history