1
0
Fork 0
mirror of https://github.com/kou029w/fogtype.com synced 2025-01-18 08:05:02 +00:00

add headscale

This commit is contained in:
Nebel 2023-05-04 22:54:13 +09:00
parent fc1deb0d7b
commit c2f8038274
Signed by: nebel
GPG key ID: 79807D08C6EF6460
3 changed files with 26 additions and 0 deletions

View file

@ -77,12 +77,24 @@ services:
- ./etc/maddy:/etc/maddy
- caddy_data:/var/lib/caddy/data:ro
- maddy_data:/data
headscale:
image: headscale/headscale:0.22.1
restart: unless-stopped
ports:
- "127.0.0.1:9200:9200"
volumes:
- ./etc/headscale:/etc/headscale
- headscale_data:/var/lib/headscale
networks:
- fogtype
command: headscale serve
volumes:
caddy_data:
caddy_config:
gotosocial_data:
vikunja_data:
maddy_data:
headscale_data:
networks:
fogtype:
ipam:

View file

@ -21,6 +21,9 @@ dns.fogtype.com {
}
}
}
net.fogtype.com {
reverse_proxy headscale:8080
}
mta-sts.fogtype.com {
handle /.well-known/mta-sts.txt {
file_server

11
etc/headscale/config.yaml Normal file
View file

@ -0,0 +1,11 @@
server_url: https://net.fogtype.com
listen_addr: 0.0.0.0:8080
metrics_listen_addr: 0.0.0.0:9200
db_type: sqlite3
db_path: /var/lib/headscale/db.sqlite
private_key_path: /var/lib/headscale/private.key
noise:
private_key_path: /var/lib/headscale/noise_private.key
ip_prefixes:
- fd7a:115c:a1e0::/48
- 100.64.0.0/10