localhost
file_server
upload / {
to "/var/tmp"
enable_webdav
}
3. The problem I’m having:
Failing to build caddy with http.upload module. (first time caddy user, not a programmer)
4. Error messages and/or full log output:
run: adapting config using caddyfile: Caddyfile:5: unrecognized directive: upload
5. What I already tried:
Tried same on different computer (same OS, version). Also tried compiling caddy manually, locally and adding the module per instruction. Tried other module (github.com/abiosoft/caddy-exec, github.com/greenpau/caddy-auth-jwt) that appear to work. Spent hours searching the web for answers. Thanks for thelp.
Yeah I think that’s a standalone upload server, I don’t think it integrates with Caddy at all. I do know @wmark is or was a user of Caddy though, and it looks like the config syntax looks inspired by Caddy to my eyes. But it doesn’t look like a plugin to me either.
Maybe it could become one in the future though, if @wmark is interested in that!
v3 is the last version known to work with Caddyserver. Specifically blitznote.com/src/http.upload/v3, browse through the repo here:
!GitHub - wmark/http.upload at v3.0.2
When compiling you need to set two tags, just like Go actual sets flags for itself (see doc.go for them). A complete compile run, automated nonetheless, can be found in folder contrib/caddyserver.
I do not support the integration into Caddyserver, i. e. won’t entertain any issues filed.