Update PKGBUILD and dnsproxy.yaml

This commit is contained in:
Fijxu 2023-12-17 19:19:49 -03:00
parent e061aaa68c
commit 29d9167c90
2 changed files with 28 additions and 15 deletions

View File

@ -1,6 +1,6 @@
# Maintainer: Fijxu <fijxu <at> zzls <dot> xyz>
pkgname=dnsproxy-git
pkgver=0.48.3.r787.c060c2a
pkgver=v0.60.1.r1.g638288e
pkgrel=1
pkgdesc="Simple DNS proxy with DoH, DoT, DoQ and DNSCrypt support (git version)"
arch=('any')
@ -15,13 +15,13 @@ source=("dnsproxy-git::git+https://github.com/AdguardTeam/dnsproxy.git"
"dnsproxy.yaml"
"dnsproxy.service")
sha256sums=("SKIP"
"9d8a7088bb101114397dd299c19d690f0356a6787844c2b4ca7358612dd1b594"
"35804d7b72453889bce6cf3bc03a499481f0c2f85fb2b02e272a1b5c061b0823"
"565eea9808589ecafa81f2229ac1f85b39028e26d488a9a7c0b51afc43d7f42b")
_conf=etc/dnsproxy/dnsproxy.yaml
pkgver() {
cd "$srcdir/$pkgname"
printf "0.48.3.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
git describe --long --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {

View File

@ -2,18 +2,31 @@
# config file
---
## Required
# upstream: # At least one upstream is required
# - 1.1.1.1:53
# A list of DNS servers that you want to use
# An upstream to be used (can be specified multiple times).
# You can also specify path to a file with the list of servers
upstream:
# - udp://45.90.28.88 # NextDNS DNS
# - udp://76.76.2.0 # ControlD DNS
# Fallback resolvers to use when regular ones are unavailable,
# can be specified multiple times. You can also specify path
# to a file with the list of servers
fallback:
# - udp://127.0.0.1 # Replace this with any DNS you want to use
## Recommended
tls-min-version: 1.2
http3: true # dnsproxy automatically picks the fastest HTTP(S) protocol
refuse-any: true
## Optional
# listen-addrs: # Defaults to 0.0.0.0 which is prone to conflict
# - 127.0.0.56
# cache: true # Caching is disabled by default
# verbose: true # Increase verbosity for debugging
http3: true
refuse-any: false
listen-addrs:
- 127.0.0.1
listen-ports:
- 53
# Cache Enabled.
cache: true
cache-optimistic: false
verbose: false
# If specified, parallel queries to all configured upstream servers are enabled
all-servers: true