Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project still maintained? #16

Open
houmie opened this issue Jun 6, 2023 · 1 comment
Open

Project still maintained? #16

houmie opened this issue Jun 6, 2023 · 1 comment

Comments

@houmie
Copy link

houmie commented Jun 6, 2023

Hi,

I'm getting this error:

2023/06/06 11:55:13.948	INFO	using provided configuration	{"config_file": "/etc/caddy/Caddyfile", "config_adapter": ""}
Error: adapting config using caddyfile: parsing caddyfile tokens for 'servers': /etc/caddy/Caddyfile:11 - Error during parsing: getting module named 'caddy.listeners.proxy_protocol': module not registered: caddy.listeners.proxy_protocol

Cadyfile:

"/etc/caddy/Caddyfile" 30L, 483B                                                                                                                                                                                                                                                                                                                        27,0-1        All
{
    log {
        output file /var/log/caddy/caddy.log {
            roll_size 1gb
            roll_keep 5
            roll_keep_for 720h
        }
    }
    servers 127.0.0.1:5001 {
        listener_wrappers {
            proxy_protocol
        }
        protocols h2c h1
    }
}

:5001 {
    root * /srv/http/default
    file_server
    bind 127.0.0.1
}

:80 {
    redir https://{host}{uri} permanent
}

It compiles as seen below, but when running, I get the error above.

sudo curl -o /usr/bin/caddy "https://caddyserver.com/api/download?os=linux&arch=amd64&package=github.com%2Fcaddy-dns%2Fcloudflare&package=github.com%2FWeidiDeng%2Fcaddy-cloudflare-ip&package=github.com%2Fmastercactapus%2Fcaddy2-proxyprotocol&package=github.com%2Fimgk%2Fcaddy-trojan"

What gives? Not sure if this project is still maintained though.
Thanks

@francislavoie
Copy link
Contributor

Yes the project is still maintained. Are you sure you're actually using the binary you downloaded with the plugin added? Run caddy list-modules to check that it's actually there.

But anyway, the plugin will no longer be needed as of Caddy v2.7.0 because it's being included as a built-in listener wrapper, so you'll simply need to stop building with this plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants