heredoc contents of derp-example.yaml

This commit is contained in:
Release Automation 2022-02-13 11:13:29 -08:00 committed by Release Automation
parent c794f32f58
commit 8e47d19273
No known key found for this signature in database
GPG Key ID: 4EE3927AC4F1BF3F

View File

@ -11,7 +11,24 @@ public-proto=http
contact-email=headscale@example.com
EOF
)
[ ! -e base/site/derp.yaml ] && cp ../derp.yaml base/site/derp.yaml
[ ! -e base/site/derp.yaml ] && (
cat >base/site/derp.yaml <<EOF
regions:
900:
regionid: 900
regioncode: custom
regionname: My Region
nodes:
- name: 900a
regionid: 900
hostname: myderp.mydomain.no
ipv4: 123.123.123.123
ipv6: "2604:a880:400:d1::828:b001"
stunport: 0
stunonly: false
derptestport: 0
EOF
)
umask 077
mkdir -p base/secrets/