439 Commits

Author SHA1 Message Date
Quentin McGaw
582ce626c8 Sort code constants DNS providers alphabetically 2020-05-30 20:18:35 +00:00
Quentin McGaw
a5afca15d1 Fix #62 CONFIG env variable 2020-05-30 18:41:31 +00:00
Quentin McGaw
25ee692242 Fixes #68: using hosts for duckdns 2020-05-30 18:14:18 +00:00
Quentin McGaw
137e372102 Fix #58 2020-05-30 17:10:11 +00:00
Quentin McGaw
f300c59411 Remove debug log lines 2020-05-30 17:03:23 +00:00
Quentin McGaw
c23998bd09 Refactoring (#63)
- Only calls DNS API(s) once the public IP address changes
- Only one ip method per ip version (ipv4, ipv6, ipv4/v6)
- Gets the ip address once every period for all records
- More object oriented coding instead of functional
- Support to update ipv4 and ipv6 records separately, for supported DNS providers
2020-05-29 20:38:01 -04:00
Quentin McGaw
af68f9ba0f Fix #54 periodic backup to zip files 2020-05-11 23:11:48 +00:00
Quentin McGaw
0c028f70e9 Using url package to build urls for APIs (#57) 2020-05-11 18:11:20 -04:00
Quentin McGaw
9c31616b46 Refactored main function 2020-05-10 17:01:09 +00:00
Quentin McGaw
345cc754ff Update golibs 2020-05-08 00:33:51 +00:00
Quentin McGaw
99d33bbcf9 Golangci lint and fixing lint issues (#48) 2020-04-04 16:38:10 -04:00
Quentin McGaw
e38351e5a4 Remove sqlite (#46)
- Removed support for SQLite based database
- Removed migration from sqlite to json file persistence storage
- Updated announcement
- Scratch based Docker image
- Much faster rebuilds
- ARM v6 and ppc64le CPU architectures added
2020-04-04 14:11:59 -04:00
Quentin McGaw
3d87cc9981 Using username:password format, refers to #44 2020-03-27 02:47:49 +00:00
Quentin McGaw
683310d3e4 Support for DDNSS.de (#40) 2020-03-07 13:44:18 -05:00
Quentin McGaw
9034a7f17b Added DDNSS ip methods (#41) 2020-03-01 20:42:22 -05:00
Quentin McGaw (desktop)
374ffc3f71 Added ipify IP method, refers to #38 2020-03-01 02:25:03 +00:00
Quentin McGaw
2859278e32 Specify custom https url to obtain public IP (#39) 2020-02-28 07:35:15 -05:00
Quentin McGaw
e070d9f5d2 Support for IPv6 and AAAA records for Infomaniak (#37) 2020-02-27 19:36:01 -05:00
Quentin McGaw
a45f448454 Added IP methods, tests and removed Google method (#36)
* Added IP methods and cycle IP method + unit tests
* Removed Google from IP methods
2020-02-27 19:10:30 -05:00
Quentin McGaw
900d8dd9db Record new IP for infomaniak (#35) 2020-02-27 19:09:51 -05:00
Quentin McGaw
823bfc54b1 Add support for Infomaniak #31 and fix CI script 2020-02-25 12:01:07 -05:00
Quentin McGaw (desktop)
38494fa360 Improved welcome message 2020-02-24 23:43:45 +00:00
Quentin McGaw (desktop)
7265406247 Fix start when no record exist in database 2020-02-24 23:42:51 +00:00
Quentin McGaw
9cf226bc54 JSON database file and migration from sqlite (#33) 2020-02-23 17:27:10 -05:00
Quentin McGaw (desktop)
0a7e38399e GetAllDomainsHosts sqlite query added 2020-02-23 17:09:16 +00:00
Quentin McGaw (desktop)
9307b8efcc Catch database rows close error properly in GetIPs 2020-02-23 17:08:39 +00:00
Quentin McGaw (desktop)
3ea149df25 Simplify & 1 fix for sqlite queries 2020-02-23 16:46:08 +00:00
Quentin McGaw (desktop)
db301af7d5 Apply WhistleMaster's comments 2020-02-22 23:42:05 +00:00
Quentin McGaw (desktop)
44b8abda7d Added missing HTML providers 2020-02-22 23:06:39 +00:00
Quentin McGaw (desktop)
a42d2f4046 Renaming ipmethods and providers constants 2020-02-22 23:03:21 +00:00
Quentin McGaw (desktop)
4bfe07b6da Minor code changes
- Replaced libnetwork by network when possible
- Lowercases only parts needed and not passwords/tokens
- Unexport regex as they are only needed in constants package
2020-02-22 23:02:06 +00:00
Quentin McGaw
bdb0c2bf2e Refactor entire Go codebase (#32)
- Small UI adjustments
- Only show last 2 previous IP addresses in notifications and UI
- Database uses interfaces to be modular/pluggable in order to move away from sqlite
- Less dependencies, it even uses a switch statement instead of httprouter
- Updated golibs
- Changed default logging format to `console` (zap)
- Better code overall, modular updater and trigger system
- Refactored readme
- CI script improved
2020-02-22 17:21:32 -05:00
Matt Bell
a11a85e7a5 Add support for Cloudflare API Tokens (#30) 2020-02-16 19:36:34 -05:00
Quentin McGaw (desktop)
ed1453784f TTL parameter added for Cloudflare, fixes #28 2020-01-22 02:05:24 +00:00
qmcgaw
cf7c9732f5 Fixes #27: Gotify is optional 2020-01-06 18:09:48 +00:00
Quentin McGaw (desktop)
24c8a9e971 Fixes #25
- Resolves any.domain.tld for wildcard records
- Healthcheck no longer fails for wildcard records without @ record
2020-01-06 00:59:06 +00:00
Quentin McGaw (desktop)
69df6b5b3a Updated to golibs 20200105 2020-01-06 00:51:21 +00:00
Quentin McGaw (desktop)
4fce3ced04 Re-enabled opendns and added Google IP methods 2019-12-20 13:49:25 +00:00
Quentin McGaw
46766b440e Refactor code with golibs (#23)
* Refactored but unstable

* Fixed bad parsing of custom delay
2019-11-28 13:43:55 -05:00