Giter Club home page Giter Club logo

docker-nginx-webdav's Introduction

Main Projects - Directory

C# Rapid Application Development Releases
Jeebs is a series of .NET libraries written in C#, powering Mileage and all my websites. GitHub release GitHub Release Date
Maybe is a Maybe monad for C# with support for Linq, async, and method chaining. GitHub release GitHub Release Date
Rnd contains C# random generators, supporting numbers, strings, DateTime, and Guid. GitHub release GitHub Release Date
StrongId enables C# strongly-typed ID values, supporting JSON, Dapper, and MVC. GitHub release GitHub Release Date

Alongside these I maintain an ecosystem of Docker images which I use for almost all my web hosting.

docker-nginx-webdav's People

Contributors

bfren avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

docker-nginx-webdav's Issues

Recommendations on CORS headers

Hi, thanks for the image. It works well and is very convenient to setup. I managed to make it work and you can see the result at webdav://webdav.benetou.fr and mounted remotely via davfs.

Unfortunately when I try to access it remotely via the browser via e.g https://fabien.benetou.fr/pub/home/future_of_text_demo/engine/webdav.html but unfortunately encounter a CORS error. Surprisingly enough yesterday I don't remember encountering that problem.

Anyway here is the reverse proxy configuration :

server
{
    add_header Access-Control-Allow-Origin *;
    server_name webdav.benetou.fr;
    location / {
        proxy_pass http://webdav_webdav_1;
        include conf.d/proxy/pass.conf;
    }
    include conf.d/ssl/ssl.conf;
    ssl_certificate /etc/letsencrypt/live/webdav.benetou.fr/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/webdav.benetou.fr/privkey.pem;
}

The client I'm using is https://github.com/perry-mitchell/webdav-client/#cors with a link to its CORS mention.

What additional configuration could I add either to the image itself or to the reverse proxy to allow CORS through WebDAV and be able to use https://webdav.benetou.fr on another subdomain e.g https://fabien.benetou.fr/pub/home/future_of_text_demo/engine/webdav.html ?

docker-compose.yml example with write access

Hello, could you please share an example that would enable client.putFileContents() and such functions?

version: "3.3"

# Very Simple WebDAV server - serves files mounted in /www. There is no authentication, so this should be used behind a reverse proxy, and local only, unless you know what you are doing.
# https://github.com/bfren/docker-nginx-webdav

services:
  webdav:
    environment:
      - WHATEVER="OK"
      #- WEBDAV_ACCESS="rw"
      #- WEBDAV_METHODS="PUT MKCOL COPY MOVE"
    image: bfren/nginx-webdav
    volumes:
      - ./data:/www
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
    restart: always
    networks:
      - my_network

networks:
  my_network:
    external: true

It does work but if I change WEBDAV_ACCESS I get

nginx: [emerg] invalid value "all:"rw"" in /etc/nginx/sites/localhost.conf:9 and the server is not accessible.

utf-8

Hi! Please tell me how to enable utf-8 to display the site page.

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.