Compiling with module fails silently

1. Caddy version (caddy version):

v2.1.1 h1:X9k1+ehZPYYrSqBvf/ocUgdLSRIuiNiMo7CvyGUQKeA=

2. How I run Caddy:

./caddy run caddyfile

a. System environment:

MacOs Catalina 10.15.5

b. Command:

./caddy run caddyfile

d. My complete Caddyfile or JSON config:

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.

6. Links to relevant resources:

Maybe I’m confused, but I don’t think that’s a Caddy plugin? I don’t see where it registers itself at all (or GitHub code search is failing me).

1 Like

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.

1 Like

Thanks guys.

Thanks @wmark for clarifying!

To clarify further, v3.0.2 only of upload only works with Caddy v1.

We no longer maintain Caddy v1, all development focus has moved to Caddy v2. The official EOL date for Caddy v1 is October 1st, 2020.

This topic was automatically closed after 30 days. New replies are no longer allowed.