Commit Graph

188 Commits

Author SHA1 Message Date
ThinkChaos 44f5982fde
docs: make config option names lower-case (#1145) 2023-09-14 16:51:23 +02:00
Dimitri Herzog b1d014017b feat(querylog): add flushInterval parameter 2023-09-14 15:06:10 +02:00
Dimitri Herzog 72d747c16f
feat: API-first approach for REST interface (#1129)
* feat: embed OpenAPI definition file

* feat: use OpenAPI generated server and client

* feat: provide OpenAPI interface documentation

* chore(test): add additional tests
2023-09-09 19:30:55 +02:00
DerRockWolf c112e86740
feat: add upstream strategy `strict` (#1093) 2023-08-21 09:50:23 +02:00
ThinkChaos 639fba5323 refactor(config): allow more configuration for `upstreams`
Rename the `upstream` option to `upstreams.groups` so we can have
more `upstreams` options.
2023-08-01 15:01:40 -04:00
ThinkChaos 56633da0a7 feat(sudn): refactor and expand supported special use domains RFCs 2023-07-14 17:38:13 -04:00
anonion 6028a64aa9 Update prometheus_grafana.md with correct grafana config 2023-07-14 09:19:27 +02:00
ThinkChaos cfc3699ab5 feat: support multiple hosts files 2023-07-07 09:16:20 -04:00
73567876543783 f20480989c
Update deprecated port specification in example config (#1042)
Co-authored-by: bas <bas@fakemail.com>
2023-06-13 16:15:16 +02:00
ThinkChaos 795f3ddf93
fix: configuration for FQDN only resolver (#1025) 2023-05-15 10:24:07 -04:00
log-to-code 8d48a21aea
Add homebrew link to the installation docs (#995) 2023-04-15 23:56:29 +02:00
mandrav 015b565137
Add maxErrorsPerFile blocking configuration (#986)
* Add maxErrorsPerFile blocking configuration

The default max errors per file of 5 is too small IMHO.
This commit makes this number user-configurable.

* squash: fix lint

* squash: docs

* squash: change type to int to allow -1

* squash: test that the `maxErrorsPerFile` is actually used

---------

Co-authored-by: ThinkChaos <ThinkChaos@users.noreply.github.com>
2023-04-12 20:43:49 +02:00
Kwitsch 68a8476e48
chore(build): Automation workflows (#972)
* Added fork sync workflow(syncs the main branch with upstream every 30 minutes)
* Added monthly workflow run deletion(all skipped or canceld and runs older than 30days will be deleted)
* Removed Docker image build for main branch on forks
* Added documentation how to enable sync and docker build workflows
2023-04-03 16:33:16 +02:00
Dimitri Herzog c9f0355266 chore: mirror git repo to codeberg 2023-03-13 14:04:18 +01:00
Dimitri Herzog 2c108dabb8 chore: change branch name to "main" (#744) 2023-03-07 17:25:04 +01:00
Dimitri Herzog 12ebe2aac6 Merge branch 'development' 2023-03-07 16:05:09 +01:00
ThinkChaos e47a8b7f60 feat(bootstrap): support IP only encrypted DNS
Also make `tcp+udp` upstreams use any IPs provided.
2023-01-18 18:57:55 +01:00
ThinkChaos a79459987b feat(bootstrap): support multiple upstreams
If more than one upstream is configured, they are raced via
a `ParallelBestResolver`.
2023-01-18 18:57:55 +01:00
Suhaib Malik 9be0d64885
CONFIG_FILE -> BLOCKY_CONFIG_FILE (#784) 2022-12-04 17:59:53 +01:00
Kwitsch b73cd3b5ba
Config restructuring (#771)
To declutter the global top level config options i propose the grouping of ports and logging options as child options of top level options.

New structure:
ports:
  dns: 43
  http: 4000
  https: 4443
  tls: 853
log:
  level: warn
  format: json
  privacy: true
  timestamp: false
2022-12-02 21:55:40 +01:00
Dimitri Herzog 2b49c2048f
feat(querylog): define which information should be logged (#765) (#766) 2022-11-26 22:12:56 +01:00
Kwitsch d4813a6448
feat(queryLog): log instance hostname to distinguish log entries in multi-instance installation(#319) (#756)
* added hostname to util

* added HostnameString

* some leftover debug output?

* added hostname to querylog

* add optional volume mounts to documentation

* changed documentation
2022-11-24 21:39:58 +01:00
Kwitsch c19d4bd60d
feat: Support for redis sentinel(#632)
Co-authored-by: Dimitri Herzog <dimitri.herzog@gmail.com>
2022-11-24 14:37:48 +01:00
Dimitri Herzog fac872b6e2 @0xERR0R chore(docs): minor changes
Co-authored-by: ThinkChaos <ThinkChaos@users.noreply.github.com>
2022-11-23 20:47:59 +01:00
Dimitri Herzog 2b0c377702 chore(docs): minor format changes, typos 2022-11-23 20:47:59 +01:00
Tobias Muellerleile a04a4180c3 Fix docs for connectIPVersion param 2022-11-14 21:35:35 +01:00
Dimitri Herzog 6c616898b8 Merge branch 'development' 2022-11-12 21:39:38 +01:00
Dimitri Herzog 3e95b12eed feat: caching for empty DNS responses (#700) 2022-11-08 21:45:28 +01:00
Daniel Linsenmeyer 8f5b27cee3 Fix intention of heading 'Hosts File' 2022-11-03 20:48:38 +01:00
Kjeld Schouten-Lebbing 69cff05222
Improve linked documentation 2022-09-25 16:07:51 +02:00
Kjeld Schouten-Lebbing 59408c2e87
KaH -> TrueCharts and add TrueNAS SCALE Native App 2022-09-24 20:54:31 +02:00
ThinkChaos f48908f7be
Add connectIPVersion to choose how Blocky connects to other hosts (#589)
This impacts both DNS lookups and lists downloading.

Co-authored-by: Dimitri Herzog <dimitri.herzog@gmail.com>
2022-09-19 21:44:12 +02:00
Libo Zeng f38397ae08
add grafana template for Postgres (#648)
* add grafana template for postgres

* add small section in docs

Co-authored-by: Dimitri Herzog <dimitri.herzog@gmail.com>
2022-09-19 21:24:52 +02:00
Dan Ponte 81344f714c Address code review concerns 2022-09-17 15:34:34 -04:00
Dan Ponte 46deb2f780 Add ability to specify certificate common name. 2022-09-14 22:03:15 -04:00
Kwitsch fd93f67899
feat: new parameter "StartStrategy" (#566) (#636)
Blocky should start resolving DNS traffic as soon as possible
2022-09-03 22:12:07 +02:00
FileGo b49695fad3 Added config, simplified check for loopback 2022-08-23 07:54:03 +01:00
FileGo 377f4764fe
Enable start as long as at least one upstream resolver in group is reachable (#608)
* Enable start if one upstream resolver fails

* Will now check if upstream actually works

* Fixed default upstream in some tests

* Increase timeouts in some tests

* change default value of "StartVerifyUpstream" to false

Co-authored-by: Dimitri Herzog <dimitri.herzog@gmail.com>
2022-08-21 17:21:08 +02:00
Kwitsch 5e9eaa2965
delivery of blocking group as EDNS error(560) (#611) 2022-08-06 22:30:26 +02:00
Dimitri Herzog 35ba684166 Link blocky-frontend in the project documentation #570 2022-07-18 22:26:05 +02:00
Adyanth H 31cf8c77d5
Add fallbackUpstream for conditional mapping (#593) 2022-07-11 08:06:42 +02:00
Dimitri Herzog 01b7947ff2 Link blocky-frontend in the project documentation #570 2022-06-29 22:46:13 +02:00
Jordi Masip b02f138d4b
docs: fix `filterUnmappedTypes` example (#574) 2022-06-28 11:48:00 +02:00
Kwitsch c912356740
Option to handle FQDN only requests (#561) 2022-06-20 13:02:51 +02:00
Dimitri Herzog 97aa99d5e0 Merge branch 'development' 2022-06-07 15:12:38 +02:00
Peter Dave Hello e6957a3ff8
Make DoH/DoT server mininum TLS version configurable (#546)
* Make DoH/DoT server mininum TLS version configurable

* Disable gosec lint on server TLSConfig
2022-06-04 08:23:40 +02:00
FileGo 92fd6235bf
Self-signed certificate generation (#532)
* Added self-signed certificate functionality

Co-authored-by: Dimitri Herzog <dimitri.herzog@gmail.com>
2022-05-27 22:20:44 +02:00
FileGo 0731ebe18a
Support for multiple configuration files (#534) 2022-05-25 15:13:52 +02:00
Dimitri Herzog a8ab753d7b
docs: change caching parameters to more useful values (#527) 2022-05-19 11:15:48 +02:00
FileGo 776c51fc59
Adds user customizable DoH upstream user agent (#525)
* Adds user customizable DoH upstream user agent

* Changed default user agent to empty
2022-05-18 08:49:15 +02:00