1. Output of
2. How I run Caddy:
as a webdav server
a. System environment:
d. My complete Caddy config:
order webdav last
root * /local/test
3. The problem I’m having:
Is it possible to limit the size of the folder (kind of a quota) when uploading files using webdav ?
Is it possible to have Caddy only serve .HTML, .JPEG and .PNG by excluding every other file extension ?
You can limit the size of an uploaded file with request_body (Caddyfile directive) — Caddy Documentation which limits the request body to a maximum size.
You can use path matchers to only allow specific requests by file extension, by rejecting anything that does not match:
@disallowed not path / *.html *.jpg *.jpeg *.png
error @disallowed 404
/ is to allow requests to the root of your site, otherwise that would throw an error as well. You might need to allow
.js if you’re trying to serve a website with this, FYI.
This topic was automatically closed after 30 days. New replies are no longer allowed.