Restructure around a single entry point (automations.sh) with a Gum wizard and a self-extracting bundle for repo-less installs. Add scripts/oslib.sh so the provisioning scripts (setup-host, harden-ssh, harden-jumphost, sshuser) run on Alpine/Debian/Alma; seed root keys from globals/. - ntfy SSH-login alerts (user, source IP, key, region, jump target) via pam_exec - daily auto-updates: AUTO_REBOOT=idle reboots only when no SSH active; opt-in Alpine stable-branch upgrades (ALLOW_RELEASE_UPGRADE) - cloud-init: generic base/jumphost + per-deployment, which harden SSH by default on fresh VMs - pocket-id: optional WebFinger block (BASE_DOMAIN), tag v2.8.0 - headscale: fix oidc.expiry schema for 0.28 so the container starts - Gitea release workflow on tag (TOKEN_GITEA); repo URLs -> Gitea - README/LICENSE/.gitignore/.gitattributes (force LF)
89 lines
2.3 KiB
YAML
89 lines
2.3 KiB
YAML
# headscale config.yaml -- 0.28.0
|
|
#
|
|
# Placeholder tokens (UPPER_SNAKE wrapped in double underscores) are
|
|
# substituted at deploy time by deploy.sh from the values in .env. Don't set
|
|
# them here directly unless you're running headscale outside the deploy script.
|
|
|
|
server_url: https://__HEADSCALE_DOMAIN__
|
|
listen_addr: 0.0.0.0:8080
|
|
metrics_listen_addr: 0.0.0.0:9090
|
|
|
|
# gRPC remote-control API. Disabled by default; clients use the standard
|
|
# `headscale` CLI inside the container instead. Uncomment + expose if you
|
|
# want remote admin.
|
|
# grpc_listen_addr: 0.0.0.0:50443
|
|
# grpc_allow_insecure: false
|
|
|
|
noise:
|
|
private_key_path: /var/lib/headscale/noise_private.key
|
|
|
|
prefixes:
|
|
v4: 100.64.0.0/10
|
|
v6: fd7a:115c:a1e0::/48
|
|
allocation: sequential
|
|
|
|
# DERP: use Tailscale's public DERP map. Embedded DERP server stays off so
|
|
# we don't need to open UDP/3478 publicly.
|
|
derp:
|
|
server:
|
|
enabled: false
|
|
urls:
|
|
- https://controlplane.tailscale.com/derpmap/default
|
|
paths: []
|
|
auto_update_enabled: true
|
|
update_frequency: 24h
|
|
|
|
database:
|
|
type: sqlite
|
|
sqlite:
|
|
path: /var/lib/headscale/db.sqlite
|
|
write_ahead_log: true
|
|
wal_autocheckpoint: 1000
|
|
|
|
log:
|
|
level: info
|
|
format: text
|
|
|
|
# Magic DNS for the tailnet. base_domain becomes the suffix for node
|
|
# DNS names (e.g. laptop.__TAILNET_DOMAIN__).
|
|
dns:
|
|
magic_dns: true
|
|
base_domain: __TAILNET_DOMAIN__
|
|
override_local_dns: false
|
|
nameservers:
|
|
global:
|
|
- 1.1.1.1
|
|
- 1.0.0.1
|
|
- 2606:4700:4700::1111
|
|
- 2606:4700:4700::1001
|
|
split: {}
|
|
search_domains: []
|
|
extra_records: []
|
|
|
|
# OIDC: delegate authentication to the pocket-id deployment. Register a
|
|
# new OIDC client in pocket-id with redirect URI:
|
|
# https://__HEADSCALE_DOMAIN__/oidc/callback
|
|
oidc:
|
|
only_start_if_oidc_is_available: true
|
|
issuer: https://__POCKETID_DOMAIN__
|
|
client_id: __OIDC_CLIENT_ID__
|
|
client_secret: __OIDC_CLIENT_SECRET__
|
|
scope:
|
|
- openid
|
|
- profile
|
|
- email
|
|
pkce:
|
|
enabled: true
|
|
# Restrict who can register a node. Uncomment one or more.
|
|
# allowed_users:
|
|
# - alice@example.com
|
|
# allowed_groups:
|
|
# - tailscale-admins
|
|
# allowed_domains:
|
|
# - example.com
|
|
# How long a node stays authenticated before re-auth is required. This is a
|
|
# duration scalar (not a map). use_expiry_from_token overrides it with the
|
|
# OIDC token's own expiry when true.
|
|
expiry: 180d
|
|
use_expiry_from_token: false
|