DEVELOPMENT ENVIRONMENT

~liljamo/felu

827c9e5e3e60167ac28806524074b2fb5cc74188 — Jonni Liljamo 20 days ago ee225a4
feat: APIUrl include protocol
2 files changed, 3 insertions(+), 3 deletions(-)

M internal/components/manage.templ
M internal/config/config.go
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