mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-27 12:05:26 +00:00
69d77f6e9d
Currently the default (and non-configurable) Let's Encrypt listener will bind to all IPs. This isn't ideal if we want to run headscale on a specific IP only. This also allows for one to set the listener to something other than port 80. This is useful for OSs like OpenBSD which only allow root to bind the lower port ranges (and don't have `setcap`) as we can now run `headscale` as a non-privileged user while still using the baked in ACME magic. Obviously this configuration would also require a reverse proxy or firewall rule to redirect traffic. I attempted to outline that in the README change.
21 lines
593 B
Plaintext
21 lines
593 B
Plaintext
{
|
|
"server_url": "http://127.0.0.1:8000",
|
|
"listen_addr": "0.0.0.0:8000",
|
|
"private_key_path": "private.key",
|
|
"derp_map_path": "derp.yaml",
|
|
"ephemeral_node_inactivity_timeout": "30m",
|
|
"db_type": "postgres",
|
|
"db_host": "localhost",
|
|
"db_port": 5432,
|
|
"db_name": "headscale",
|
|
"db_user": "foo",
|
|
"db_pass": "bar",
|
|
"tls_letsencrypt_hostname": "",
|
|
"tls_letsencrypt_listen": ":http",
|
|
"tls_letsencrypt_cache_dir": ".cache",
|
|
"tls_letsencrypt_challenge_type": "HTTP-01",
|
|
"tls_cert_path": "",
|
|
"tls_key_path": "",
|
|
"acl_policy_path": ""
|
|
}
|