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
{{ message }}
This repository was archived by the owner on Oct 20, 2023. It is now read-only.
With this configuration you'll grant access for two users and the webdav
59
+
server is available under `http://127.0.0.1:8000/webdav`.
55
60
56
61
### TLS
57
62
58
-
At first, use your favorite toolchain to obtain a SSL certificate and keyfile (if you don't already have some).
63
+
At first, use your favorite toolchain to obtain a SSL certificate and
64
+
keyfile (if you don't already have some).
59
65
60
66
Here an example with `openssl`:
61
67
@@ -75,21 +81,21 @@ Now you can reference your keypair in the configuration via:
75
81
users:
76
82
...
77
83
78
-
The presence of the `tls` section is completely enough to let the server start with a TLS secured https connection.
84
+
The presence of the `tls` section is completely enough to let the server
85
+
start with a TLS secured https connection.
79
86
80
-
In the current release version you must take care, that the private key doesn't need a passphrase. Otherwise starting the server will fail.
87
+
In the current release version you must take care, that the private key
88
+
doesn't need a passphrase. Otherwise starting the server will fail.
81
89
82
90
### Behind a proxy
83
91
84
-
If you'd like to move your setup behind a proxy / gateway under a specific path, you can set the config variable `prefix` to match the url-prefix of your proxy configuration.
85
-
86
-
For example: If you have a rule that proxies all requests of `https://domain.com/webdav` to `https://localhost:8000`, you have to set the prefix to `/webdav`.
92
+
_swd_ will also work behind a reverse proxy. Here is an example
93
+
configuration with `apache2 httpd`'s `mod_proxy`:
87
94
88
-
address: "127.0.0.1" # the bind address
89
-
port: "8000" # the listening port
90
-
prefix: "/webdav" # the url-prefix of the original url
91
-
dir: "/home/webdav" # the provided base directory
92
-
...
95
+
<Location /webdav>
96
+
ProxyPass https://webdav-host:8000/
97
+
ProxyPassReverse https://webdav-host:8000/
98
+
</Location>
93
99
94
100
### User management
95
101
@@ -108,22 +114,27 @@ You can enable / disable logging for the following operations:
108
114
-**U**pdating of files or directories
109
115
-**D**eletion of files or directories
110
116
111
-
All logs are disabled per default until you will turn it on via the following config entries:
117
+
You can also enable or disable the error log.
112
118
113
-
address: "127.0.0.1" # the bind address
114
-
port: "8000" # the listening port
115
-
dir: "/home/webdav" # the provided base directory
116
-
log:
117
-
create: true
118
-
read: true
119
-
update: true
120
-
delete: true
121
-
...
119
+
All file-operation logs are disabled per default until you will turn it on via the following config entries:
120
+
121
+
```yaml
122
+
address: "127.0.0.1"# the bind address
123
+
port: "8000"# the listening port
124
+
dir: "/home/webdav"# the provided base directory
125
+
log:
126
+
error: true
127
+
create: true
128
+
read: true
129
+
update: true
130
+
delete: true
131
+
...
132
+
```
122
133
123
134
Be aware, that the log pattern of an attached tty differs from the log pattern of a detached tty.
124
135
125
136
Example of an attached tty:
126
-
137
+
127
138
INFO[0000] Server is starting and listening address=0.0.0.0 port=8000 security=none
0 commit comments