diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..e6d422a --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,25 @@ +# See https://pre-commit.com for more information +# See https://pre-commit.com/hooks.html for more hooks +repos: +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v3.2.0 + hooks: + - id: trailing-whitespace + - id: end-of-file-fixer + - id: check-yaml + - id: check-added-large-files + +- repo: https://github.com/renovatebot/pre-commit-hooks + rev: 38.101.0 + hooks: + - id: renovate-config-validator + +- repo: https://github.com/rhysd/actionlint + rev: v1.7.3 + hooks: + - id: actionlint-docker + +- repo: https://github.com/hadolint/hadolint + rev: v2.12.0 + hooks: + - id: hadolint-docker diff --git a/Dockerfile b/Dockerfile index 144a21d..c64c9a2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -159,7 +159,7 @@ COPY --from=root-key --chown=unbound:unbound /var/unbound/root.key /var/unbound/ RUN [ "unbound", "-V" ] # hadolint ignore=DL3059 -RUN [ "unbound-checkconf" ] +RUN [ "unbound-checkconf" ] # hadolint ignore=DL3059 RUN [ "drill", "-v" ] # hadolint ignore=DL3059 diff --git a/rootfs_overlay/etc/unbound/custom.conf.d/cachedb.conf.example b/rootfs_overlay/etc/unbound/custom.conf.d/cachedb.conf.example index 93dd925..47b0bb1 100644 --- a/rootfs_overlay/etc/unbound/custom.conf.d/cachedb.conf.example +++ b/rootfs_overlay/etc/unbound/custom.conf.d/cachedb.conf.example @@ -2,4 +2,4 @@ cachedb: backend: "redis" redis-server-host: redis redis-server-port: 6379 - redis-expire-records: yes \ No newline at end of file + redis-expire-records: yes diff --git a/rootfs_overlay/etc/unbound/unbound.conf b/rootfs_overlay/etc/unbound/unbound.conf index 1e16e21..a711230 100644 --- a/rootfs_overlay/etc/unbound/unbound.conf +++ b/rootfs_overlay/etc/unbound/unbound.conf @@ -76,7 +76,7 @@ server: # Fetch DS records earlier (DNSSEC): more cpu usage, less latency prefetch-key: yes - + # One thread should be sufficient, can be increased on beefy machines. # In reality for most users running on small networks or on a single machine, # it should be unnecessary to seek performance enhancement by increasing num-threads above 1.