autodetect API by length of API key
This commit is contained in:
parent
6c08ad807c
commit
de91e17240
4 changed files with 61 additions and 16 deletions
|
|
@ -13,14 +13,26 @@
|
|||
# See petrified.crontab for examples on how to run via cron/fcron.
|
||||
|
||||
|
||||
# This is the unique string for the dynamic DNS entry to update; visit
|
||||
# https://freedns.afraid.org/dynamic/v2/ - next to the DNS entries towards
|
||||
# the bottom is a link to sync.afraid.org; copy that and extract the string
|
||||
# after the '.../u/' part and put here.
|
||||
# This is the unique key for the dynamic DNS entry to update; visit:
|
||||
# https://freedns.afraid.org/dynamic/ (v1 API) or
|
||||
# https://freedns.afraid.org/dynamic/v2/ (v2 API)
|
||||
# Next to the DNS entries towards the bottom is a link to afraid.org;
|
||||
# copy that and extract the string and put here, this is your API key.
|
||||
#
|
||||
# Example: DDNS_KEY=ZIfSWnXKuDqMpNEsTXBA852
|
||||
# Example v1: DDNS_KEY=9C4yjq3kaekkYNbYsKRqcosTmouMYbfVMLkJtR==
|
||||
# Example v2: DDNS_KEY=ZIfSWnXKuDqMpNEsTXBA852
|
||||
DDNS_KEY=
|
||||
|
||||
# The migration from API v1 to API v2 requires the user to visit the
|
||||
# website and click a few buttons to generate a new API key for each
|
||||
# domain; the API v1 length is variable but API v2 is a fixed length
|
||||
# at 24 chars. This setting will try and autodetect the API version by
|
||||
# the length of DDNS_KEY - if 24, use v2 else use v1.
|
||||
# 0 = auto
|
||||
# 1 = force API v1
|
||||
# 2 = force API v2
|
||||
DDNS_API=0
|
||||
|
||||
# Which URL to use to get an IP - the expectation is output from this
|
||||
# host in plain text, just the IP - no parsing will be done. The
|
||||
# icanhazip service returns the IPv4 and IPv6 nice and clean.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue