M internal/components/manage.templ => internal/components/manage.templ +1 -1
@@ 8,7 8,7 @@ func getDomainPattern() string {
}
func getUpdateACommand() string {
- return fmt.Sprintf("curl \"https://%s/update/a?domain=THE_PART_YOU_DEFINE&api_key=THE_API_KEY\"",
+ return fmt.Sprintf("curl \"%s/update/a?domain=THE_PART_YOU_DEFINE&api_key=THE_API_KEY\"",
config.FeluConfig.APIUrl)
}
M internal/config/config.go => internal/config/config.go +2 -2
@@ 17,8 17,6 @@ type config struct {
ServiceName string
DDNSDomain string
- // API url, where the API is served at (e.g. api.feluddns.tld)
- APIUrl string
SOAEmail string
@@ 34,6 32,8 @@ type config struct {
FrontendBindAddr string
+ // API url, where the API is served at (e.g. https://api.felud.arpa)
+ APIUrl string
APIBindAddr string
DNSBindIP string