You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, I'm using a binary release within 2 latest releases.
Yes, I've searched similar issues on GitHub and didn't find any.
Yes, I've included all information below (version, config, etc).
What did you expect to see?
Would lilke that lego accepts API version in PDNS_API_URL or to detect the version properly.
What did you see instead?
When 'PDNS_API_URL' is set to 'http://server/', without 'api/v1' prefix, API version is not detected and all pdns requests are made to / instead to /api/v1 so all PowerDNS requests fails.
When 'PDNS_API_URL' is set to 'http://server/api/v1' all pdns requests are made to /api/v1/api/v1. So version prefix is duplicated and again all PowerDNS request fails.
Welcome
What did you expect to see?
Would lilke that lego accepts API version in PDNS_API_URL or to detect the version properly.
What did you see instead?
When 'PDNS_API_URL' is set to 'http://server/', without 'api/v1' prefix, API version is not detected and all pdns requests are made to
/
instead to/api/v1
so all PowerDNS requests fails.When 'PDNS_API_URL' is set to 'http://server/api/v1' all pdns requests are made to /api/v1/api/v1. So version prefix is duplicated and again all PowerDNS request fails.
Why not just allow API version in URL?
Another project noticed the same issue - traefik/traefik#9726
How do you use lego?
Binary
Reproduction steps
Version of lego
lego version 4.14.0 darwin/arm64
Logs
PDNS_API_URL=https://< server >/api/v1
PDNS_API_URL=https://< server >
Go environment (if applicable)
No response
The text was updated successfully, but these errors were encountered: