Skip to content

Commit 25a1c98

Browse files
authored
v0.3 gitlab actions (#3)
* Allow global dns queries via dnsdist ACL * Github actions to build updns images
1 parent 2a8d824 commit 25a1c98

File tree

3 files changed

+64
-2
lines changed

3 files changed

+64
-2
lines changed

.github/workflows/main.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: updns
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
#on: [push]
9+
10+
jobs:
11+
build-updns-images:
12+
runs-on: ubuntu-latest
13+
steps:
14+
-
15+
name: Checkout
16+
uses: actions/checkout@v2
17+
-
18+
name: Set up QEMU
19+
uses: docker/setup-qemu-action@v1
20+
-
21+
name: Set up Docker Buildx
22+
uses: docker/setup-buildx-action@v1
23+
-
24+
name: Login to GitHub Container Registry
25+
uses: docker/login-action@v1
26+
with:
27+
registry: ghcr.io
28+
username: usableprivacy
29+
password: ${{ secrets.REGISTRY_ACCESS_TOKEN }}
30+
-
31+
name: Build cryptodns
32+
uses: docker/build-push-action@v2
33+
with:
34+
context: ./cryptodns
35+
file: ./cryptodns/Dockerfile
36+
platforms: linux/amd64, linux/arm
37+
push: true
38+
tags: |
39+
ghcr.io/usableprivacy/cryptodns:latest
40+
-
41+
name: Build letsencrypt
42+
uses: docker/build-push-action@v2
43+
with:
44+
context: ./letsencrypt
45+
file: ./letsencrypt/Dockerfile
46+
platforms: linux/amd64, linux/arm
47+
push: true
48+
tags: |
49+
ghcr.io/usableprivacy/letsencrypt:latest
50+
-
51+
name: Build nameserver
52+
uses: docker/build-push-action@v2
53+
with:
54+
context: ./nameserver
55+
file: ./nameserver/Dockerfile
56+
platforms: linux/amd64, linux/arm
57+
push: true
58+
tags: |
59+
ghcr.io/usableprivacy/nameserver:latest

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Basic requirements:
2020
* `LETSENCRYPT_*` environment variables for certbot
2121
* `FQDN` domain to use for your DoH / DoT server
2222
3) Create a `.ini` file with our DNS API credentials for `certbot`
23-
4) Run **updns**
23+
4) Deploy **updns** services
2424
```
2525
docker-compose up
2626
```

cryptodns/conf/dnsdist.conf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,7 @@ addDOHLocal('0.0.0.0:4453', '/certs/live/updns/fullchain.pem', '/certs/live/updn
77
-- DoH Resolver behind HTTPS reverse-proxy with x-forwarded-for header
88
addDOHLocal('0.0.0.0:8053', nil, nil, {'/', '/query', '/dns-query'}, {trustForwardedForHeader=true})
99
-- Limit requests to 255 per class-c IPv4 network
10-
addAction(MaxQPSIPRule(255, 24, 48), DropAction())
10+
addAction(MaxQPSIPRule(255, 24, 48), DropAction())
11+
-- Allow global DNS queries
12+
addACL('0.0.0.0/0')
13+
addACL('::/0')

0 commit comments

Comments
 (0)