package components
import "git.src.quest/~liljamo/felu/internal/config"
import "fmt"
func getDomain() string {
return config.FeluConfig.Domain
}
func getUpdateACommand() string {
return fmt.Sprintf("curl \"%s/update/a?domain=THE_PART_YOU_DEFINE&api_key=THE_API_KEY\"",
config.FeluConfig.APIUrl)
}
templ Manage() {
@ManageBase("Manage") {
Updating A Records automatically
The following should be ran via some automation, like a cron job.
You are on your own till real docs are made.
RFC 2136 settings for lego
{ getUpdateACommand() }
RFC2136_NAMESERVER={ getDomain() }
RFC2136_TSIG_KEY=DOMAIN.{ getDomain() }
RFC2136_TSIG_ALGORITHM=hmac-sha256.
RFC2136_TSIG_SECRET=TSIG_KEY