You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-23Lines changed: 14 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,13 +6,10 @@ This example starts a WebDAV server on port 80. It can only be accessed with a s
6
6
7
7
When using unencrypted HTTP, use `Digest` authentication (instead of `Basic`) to avoid sending plaintext passwords in the clear.
8
8
9
-
To make sure your data doesn't get deleted, you'll probably want to create a persistent storage volume (`-v vol-webdav:/var/lib/dav`) or bind mount a directory (`-v /path/to/directory:/var/lib/dav`):
10
-
11
9
```
12
-
docker run --restart always -v /srv/dav:/var/lib/dav \
We recommend you use a reverse proxy (eg, Traefik) to handle SSL certificates. You can see an example of how to do that [here](https://github.com/BytemarkHosting/configs-webdav-docker).
41
-
42
-
If you're happy with a self-signed SSL certificate, specify `-e SSL_CERT=selfsigned` and the container will generate one for you.
36
+
We recommend you use a reverse proxy (eg, Nginx Proxy Manager) to handle SSL certificates. If you're happy with a self-signed SSL certificate, specify `-e SSL_CERT=selfsigned` and the container will generate one for you.
43
37
44
38
```
45
-
docker run --restart always -v /srv/dav:/var/lib/dav \
If you bind mount a certificate chain to `/cert.pem` and a private key to `/privkey.pem`, the container will use that instead!
@@ -54,7 +47,7 @@ If you bind mount a certificate chain to `/cert.pem` and a private key to `/priv
54
47
55
48
Specifying `USERNAME` and `PASSWORD` only supports a single user. If you want to have lots of different logins for various users, bind mount your own file to `/user.passwd` and the container will use that instead.
56
49
57
-
If using `Basic` authentication, run the following commands:
50
+
If using `Basic` authentication, run the following commands through the Containers Console:
58
51
59
52
```
60
53
touch user.passwd
@@ -65,7 +58,6 @@ htpasswd -B user.passwd bob
65
58
66
59
If using `Digest` authentication, run the following commands. (NB: The default `REALM` is `WebDAV`. If you specify your own `REALM`, you'll need to run `htdigest` again with the new name.)
67
60
68
-
69
61
```
70
62
touch user.passwd
71
63
htdigest user.passwd WebDAV alice
@@ -87,7 +79,6 @@ All environment variables are optional. You probably want to at least specify `U
87
79
***`PASSWORD`**: Authenticate with this password (and the username above). This is ignored if you bind mount your own authentication file to `/user.passwd`.
88
80
***`ANONYMOUS_METHODS`**: Comma-separated list of HTTP request methods (eg, `GET,POST,OPTIONS,PROPFIND`). Clients can use any method you specify here without authentication. Set to `ALL` to disable authentication. The default is to disallow any anonymous access.
89
81
***`SSL_CERT`**: Set to `selfsigned` to generate a self-signed certificate and enable Apache's SSL module. If you specify `SERVER_NAMES`, the first domain is set as the Common Name.
90
-
***`PUID`**: file owner's UID of `/var/lib/dav`
91
-
***`PGID`**: file owner's GID of `/var/lib/dav`
92
-
93
-
82
+
***`PUID`**: file owner's UID of `/var/lib/dav/data`
83
+
***`PGID`**: file owner's GID of `/var/lib/dav/data`
0 commit comments