caddy-dns / dnspod

MIT License
32 stars 10 forks source link

Login fail when obtain cert by DNSPOD #8

Open deancn opened 2 years ago

deancn commented 2 years ago

As the Readme, added the follow config to Caddyfile, But login failed.

tls { dns dnspod {env.DNSPOD_TOKEN} }

Error message: Could not get domains: Login fail, please check login info

The DNSPOD_TOKEN format is "APP_ID,APP_TOKEN"

image

deancn commented 2 years ago

seems cannot read from env variable. But can set value in the caddyfile

deancn commented 2 years ago

@lscgzwd Can you help review?

JounQin commented 10 months ago

Can anyone help to review???

The following does not work:

go: downloading github.com/airdb/dnspod v0.0.4
go: github.com/airdb/dnspod@v0.0.4 found: parsing go.mod:
    module declares its path as: github.com/caddy-dns/dnspod
            but was required as: github.com/airdb/dnspod
go: github.com/airdb/dnspod@upgrade (v0.0.4) requires github.com/airdb/dnspod@v0.0.4: parsing go.mod:
    module declares its path as: github.com/caddy-dns/dnspod
            but was required as: github.com/airdb/dnspod

Workaround:

xcaddy build --with github.com/airdb/dnspod

Thanks @deancn

Can you raise a PR for this repo?