package components
import "git.src.quest/~skye/felu-ddns/internal/config"
import "fmt"
func getDomainPattern() string {
return fmt.Sprintf(".%s", config.FeluConfig.DNSPattern)
}
func getUpdateACommand() string {
return fmt.Sprintf("curl \"https://%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.
{ getUpdateACommand() }