-
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
126 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# NOTE: This is just an example (which is also not fully tested yet) how you could use sniDust with DoT and a trusted certificate. | ||
# Is uses acme.sh and the DNS-01 method in conjuntion with cloudflare. For other options using acme.sh please see here: https://github.com/acmesh-official/acme.sh/wiki/ | ||
# | ||
# | ||
# You need run acme.sh ONCE manually. After the container will manually renew certs and call snidust to reload certs | ||
# docker exec \ | ||
# -e CF_Token="TOKEN" \ | ||
# -e CF_Email="[email protected]" \ | ||
# acme.sh --issue -d dot.example.com --dns dns_cf | ||
# | ||
volumes: | ||
acme_sh: | ||
driver: local | ||
|
||
services: | ||
acme.sh: | ||
container_name: acme.sh | ||
image: neilpang/acme.sh | ||
command: daemon | ||
volumes: | ||
- acme_sh:/acme.sh | ||
- /var/run/docker.sock:/var/run/docker.sock | ||
environment: | ||
- DEPLOY_DOCKER_CONTAINER_LABEL=sh.acme.autoload.domain=dot.example.com | ||
- DEPLOY_DOCKER_CONTAINER_KEY_FILE=/etc/dnsdist/cert/tls.key | ||
- DEPLOY_DOCKER_CONTAINER_CERT_FILE="/etc/dnsdist/cert/cert.pem" | ||
- DEPLOY_DOCKER_CONTAINER_CA_FILE="/etc/dnsdist/cert/ca.pem" | ||
- DEPLOY_DOCKER_CONTAINER_FULLCHAIN_FILE="/etc/dnsdist/cert/tls.pem" | ||
- DEPLOY_DOCKER_CONTAINER_RELOAD_CMD="/usr/bin/dog @127.0.0.1:5300 --short reload.certs.snidust.local" | ||
sniDust: | ||
container_name: sniDust | ||
labels: | ||
- sh.acme.autoload.domain=dot.example.com | ||
environment: | ||
- 'ALLOWED_CLIENTS=127.0.0.1/32, myDynDNSDomain.no-ip.com' # CHANGE THIS | ||
- 'EXTERNAL_IP=10.111.123.8' # CHANGE THIS TO YOUR VPS PUBLIC IP | ||
- TZ=Europe/Berlin | ||
- DNSDIST_ENABLE_DOT=true | ||
- DNSDIST_DOT_CERT_TYPE=manual | ||
ports: | ||
- '443:8443' | ||
- '80:8080' | ||
- '53:5300/udp' | ||
- '53:5300/tcp' | ||
- '853:8530/tcp' | ||
image: 'ghcr.io/seji64/snidust:main' | ||
restart: unless-stopped |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
services: | ||
sniDust: | ||
container_name: sniDust | ||
environment: | ||
- 'ALLOWED_CLIENTS=127.0.0.1/32, myDynDNSDomain.no-ip.com' # CHANGE THIS | ||
- 'EXTERNAL_IP=10.111.123.8' # CHANGE THIS TO YOUR VPS PUBLIC IP | ||
- TZ=Europe/Berlin | ||
- DNSDIST_ENABLE_DOT=true | ||
- DNSDIST_DOT_CERT_TYPE=auto-self # Generate selfsinged cert. Can also be set to 'manual' | ||
# Uncomment this if you choose manual. Align paths to match your environment -> Just an example! | ||
# volumes: | ||
# - /etc/letsencrypt/live/dot.example.com/fullchain.pem:/etc/dnsdist/cert/tls.pem:ro | ||
# - /etc/letsencrypt/live/dot.example.com/privkey.pem:/etc/dnsdist/cert/tls.key:ro | ||
ports: | ||
- '443:8443' | ||
- '80:8080' | ||
- '53:5300/udp' | ||
- '53:5300/tcp' | ||
- '853:8530/tcp' | ||
image: 'ghcr.io/seji64/snidust:main' | ||
restart: unless-stopped |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters