mirror of
https://github.com/yusing/godoxy.git
synced 2026-01-14 06:13:33 +01:00
Fail to add DuckDns provider to autocert #6
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @earvingad on GitHub (Apr 4, 2024).
Hello,
Modified autocert.go by adding duckdns provider as follow:
Run
make buildand it compiles successfully.Config:
Error after running
bin/go-proxy@yusing commented on GitHub (Apr 5, 2024):
Hi, please remove line 27, 41-52 from schema/config.schema.json then try again.
This is an error message from schema validator.
@yusing commented on GitHub (Apr 5, 2024):
For duckdns, it should be
token:instead ofDUCKDNS_TOKEN, according to this file.I will update the README for this, and may support
DUCKDNS_TOKENlike environment variable style options@earvingad commented on GitHub (Apr 5, 2024):
yes, after deleting the lines it is working now!!
You were right, it got the tls certificate in just a moment! this is veeeery simple to set up! Thanks a lot!
I dont think there is the need to support
DUCKDNS_TOKENjusttokenis understandable. Same case forclouddns_client_idjust as the docs sayclien_idis enough it was my confusion.Config for duckdns:
@yusing commented on GitHub (Apr 5, 2024):
Thanks for testing it out, there is a bug that the cert will renew every 3 days, but not every N-3 days. I will fix it soon.
@earvingad commented on GitHub (Apr 5, 2024):
Yes I was about to ask you if it could be changed. Usually it should renew every two months requesting a 3 months certificate. That's the thumb rule I saw in other reverse proxies (swag or npm).