Commit Graph

100 Commits

Author SHA1 Message Date
Quentin McGaw
32fafeca95 chore(all): rename host to owner
- Retro-compatible change, `host` field still works
- Documentation updated to use `owner` field
- Code updated to use owner variable name
2024-06-27 06:51:08 +00:00
Quentin McGaw
ca85596e19 feat(config): CONFIG_FILEPATH option 2024-06-17 19:01:06 +00:00
Quentin McGaw
cc995a79c8 feat(config): add SERVER_ENABLED defaulting to yes 2024-06-13 19:51:52 +00:00
Quentin McGaw
776206eec8 feat(health): only run health server when running in Docker 2024-06-13 19:35:11 +00:00
Quentin McGaw
85780dc6e1 chore(lint): add multiple linters 2024-06-13 09:23:19 +00:00
Quentin McGaw
130ab008b5 chore(all): migrate to service architecture with github.com/qdm12/goservices (#743) 2024-06-13 11:16:32 +02:00
Quentin McGaw
2b02ac154e chore(main): split main function into smaller functions 2024-06-13 09:01:38 +00:00
Quentin McGaw
937a249ffa feat(healthchecksio): option HEALTH_HEALTHCHECKSIO_BASE_URL 2024-04-30 15:52:47 +00:00
Quentin McGaw
ec4411e12d feat(healthchecks.io): fail and exit codes support
- notify with `/fail` suffix if any update failed
- notify with `/0` on program exit with 0 code
- notify with `/1` on program exit with 1 code
2024-02-09 13:47:29 +00:00
Quentin McGaw
4499d87e05 feat(version): print version
- When first argument is `version` or `-version` or `--version`
- Print release tag version, or latest-<commithash> otherwise
2024-02-08 20:03:53 +00:00
Quentin McGaw
1c80aaa3ec chore(ci): rename created -> date versioning variable
- to match goreleaser default ldflags `main.date`
- rename Dockerfile ldflag from created to date
- remove goreleaser custom ldflags and use defaults ones
2024-02-03 07:55:33 +00:00
Quentin McGaw
e3ed94ff43 feat(update): more accurate time of events
- update call may take some time
- event time should be AFTER update is finished
- new ban time should be set to time AFTER update is finished
2024-02-01 16:36:17 +00:00
Quentin McGaw
bad0d3aeda fix(ipv6): add JSON IPv6 suffix parameter (#611)
- Remove `IPV6_PREFIX` environment variable (unneeded) and remove associated code
- Update all documentation for each provider supporting IPv6
- Build IPv6 as prefix:suffix when getting it from a public IP source for each record IPv6 suffix parameter
- Automatically disable provider_ip if public ip is IPv6 and IPv6 suffix is set (they are not compatible with each other)
2024-01-29 17:31:07 +01:00
Quentin McGaw
3e638326ed feat(config): LISTENING_ADDRESS configuration key (#590) 2024-01-18 08:18:15 +01:00
Quentin McGaw
0a41ff5b3b feat(config): read config from flags then environment variables 2024-01-16 10:15:22 +00:00
Quentin McGaw
ab6908b8cc chore(config): upgrade to qdm12/gosettings v0.4.0-rc6 2024-01-16 10:13:28 +00:00
Quentin McGaw
91741a5aad feat(health): HEALTH_HEALTHCHECKSIO_UUID for healthchecks.io 2024-01-15 13:56:56 +00:00
Felix Wirth
7ed63a036e fix(internal/persistence/json): get events by IP version (#514) 2024-01-15 10:46:06 +01:00
Quentin McGaw
45881d137b chore(main): rename s -> provider in providers for loop 2024-01-15 09:38:57 +00:00
Quentin McGaw
320d91d8e3 change(publicip/dns): use DNS over TLS only
- Fix critical issue #492
- Remove `google` dns provider since it does not support DNS over TLS
2023-06-17 13:57:41 +00:00
Quentin McGaw
4a6020558f chore(all): rename settings package to provider
- internal/provider: rename `Settings` interface to `Provider`
- internal/params: rename *Settings* to *Providers*
- internal/records: rename `Settings` to `Provider`
2023-06-14 06:25:56 +00:00
Quentin McGaw
204be2072e fix(ci): write creation date correctly 2023-06-13 05:43:43 +00:00
Quentin McGaw
81b336fe07 hotfix(main): fix bad HTTP -> DNS public ip enable flag 2023-06-12 20:26:16 +00:00
Quentin McGaw
6d9568c7e5 chore(shoutrrr): create internal/shoutrrr package 2023-06-12 14:13:34 +00:00
Quentin McGaw
a9cb4ec63b feat(settings): log out tree of settings 2023-06-12 12:22:05 +00:00
Quentin McGaw
3e4d359140 chore(settings): default root url to / (cannot be empty) 2023-06-12 12:19:30 +00:00
Quentin McGaw
aebe5988f1 feat(shoutrrr): add debug logs 2023-06-12 11:10:44 +00:00
Quentin McGaw
9a4a268926 chore(all): migrate from net.IP* to net/netip 2023-06-12 09:48:43 +00:00
Quentin McGaw
4b51c8b35b chore(config): rework entire global settings reading
- Use qdm12/gosettings
- No functional changes (at least intended)
- Remove qdm12/golibs dependency

chore(params): remove dependency on golibs
2023-06-12 06:17:24 +00:00
Quentin McGaw
57a928df92 chore(main): replace golibs/connectivity with health.CheckHTTP 2023-06-08 12:57:08 +00:00
Quentin McGaw
3339c838fa chore(all): remove short if error checks 2023-04-13 15:38:05 +00:00
Quentin McGaw
49b779813a chore(lint): bump from v1.50.1 to v1.52.2 2023-04-13 09:44:27 +00:00
Quentin McGaw
2165b69137 chore(log): use github.com/qdm12/log 2022-12-07 10:10:18 +00:00
Quentin McGaw
e197478638 chore(health): remove unneeded logger argument 2022-12-07 10:08:43 +00:00
Quentin McGaw
3b0fae84e5 feat(dns): specify resolver address and timeout
- `RESOLVER_ADDRESS`
- `RESOLVER_TIMEOUT`
2022-12-07 10:08:39 +00:00
Quentin McGaw
1561babd76 chore(lint): add ireturn linter
- Return concrete structs
- Accept interfaces
- Define narrow interfaces locally where needed
2022-08-28 19:50:02 +00:00
Quentin McGaw (desktop)
7fccf2c979 Feat: additional logging about config read 2021-10-21 03:19:47 +00:00
Quentin McGaw (desktop)
9e73f99ee1 Maint: upgrade qdm12/goshutdown to v0.3.0 2021-09-27 13:43:27 +00:00
Quentin McGaw (desktop)
8b327f81c7 Feat: add destination to notification errors 2021-09-10 22:07:18 +00:00
Quentin McGaw (desktop)
335c82b4be Maint: upgrade qdm12/golibs
- Fix logging settings inheritance
- Fix debug logging for HTTP client
2021-08-25 00:24:57 +00:00
Quentin McGaw (desktop)
28e2d00198 Fix: shoutrrr validation error wrapping, fix #233 2021-08-24 18:52:34 +00:00
Quentin McGaw (desktop)
51dd14cb66 Fix: gosplash title, fix #232 2021-08-16 12:37:10 +00:00
Quentin McGaw (desktop)
9252bca505 Maint: http client logger middleware 2021-08-10 20:47:36 +00:00
Quentin McGaw (desktop)
8f8d187a32 Maint: upgrade qdm12/golibs
- Wrap errors in config package with environment variable name
- Update logger calls to use a single string
2021-08-10 19:34:47 +00:00
Quentin McGaw (desktop)
e608a016db Hotfix: use breml/rootcerts for TLS certs 2021-08-10 12:24:29 +00:00
Quentin McGaw (desktop)
050b34a9bd Maint: use qdm12/gosplash 2021-08-10 11:44:52 +00:00
Quentin McGaw (desktop)
76b1f5f0df Maint: local scoped buildInfo 2021-06-29 20:28:02 +00:00
Quentin McGaw (desktop)
4133dbfdc7 Feat: Support Shoutrrr addresses 2021-06-29 20:05:06 +00:00
Quentin McGaw (desktop)
c4f50992c2 Maint: use qdm12/goshutdown 2021-06-29 19:15:55 +00:00
Quentin McGaw (desktop)
1b154df8aa Maint: move setupGotify inline in _main function 2021-06-29 18:49:32 +00:00