2022-11-02 08:53:55 +00:00
|
|
|
package hsic
|
|
|
|
|
2024-04-17 05:03:06 +00:00
|
|
|
import "github.com/juanfont/headscale/hscontrol/types"
|
|
|
|
|
2023-01-05 11:44:28 +00:00
|
|
|
func MinimumConfigYAML() string {
|
|
|
|
return `
|
|
|
|
private_key_path: /tmp/private.key
|
|
|
|
noise:
|
|
|
|
private_key_path: /tmp/noise_private.key
|
|
|
|
`
|
|
|
|
}
|
|
|
|
|
|
|
|
func DefaultConfigEnv() map[string]string {
|
|
|
|
return map[string]string{
|
|
|
|
"HEADSCALE_LOG_LEVEL": "trace",
|
2024-08-19 11:03:01 +00:00
|
|
|
"HEADSCALE_POLICY_PATH": "",
|
2024-02-09 06:27:00 +00:00
|
|
|
"HEADSCALE_DATABASE_TYPE": "sqlite",
|
|
|
|
"HEADSCALE_DATABASE_SQLITE_PATH": "/tmp/integration_test_db.sqlite3",
|
2024-10-02 09:41:58 +00:00
|
|
|
"HEADSCALE_DATABASE_DEBUG": "1",
|
|
|
|
"HEADSCALE_DATABASE_GORM_SLOW_THRESHOLD": "1",
|
2023-01-05 11:44:28 +00:00
|
|
|
"HEADSCALE_EPHEMERAL_NODE_INACTIVITY_TIMEOUT": "30m",
|
2024-02-18 18:31:29 +00:00
|
|
|
"HEADSCALE_PREFIXES_V4": "100.64.0.0/10",
|
|
|
|
"HEADSCALE_PREFIXES_V6": "fd7a:115c:a1e0::/48",
|
2024-08-19 09:41:05 +00:00
|
|
|
"HEADSCALE_DNS_BASE_DOMAIN": "headscale.net",
|
|
|
|
"HEADSCALE_DNS_MAGIC_DNS": "true",
|
|
|
|
"HEADSCALE_DNS_NAMESERVERS_GLOBAL": "127.0.0.11 1.1.1.1",
|
2023-01-05 11:44:28 +00:00
|
|
|
"HEADSCALE_PRIVATE_KEY_PATH": "/tmp/private.key",
|
|
|
|
"HEADSCALE_NOISE_PRIVATE_KEY_PATH": "/tmp/noise_private.key",
|
|
|
|
"HEADSCALE_LISTEN_ADDR": "0.0.0.0:8080",
|
2024-04-10 13:35:09 +00:00
|
|
|
"HEADSCALE_METRICS_LISTEN_ADDR": "0.0.0.0:9090",
|
2023-01-05 11:44:28 +00:00
|
|
|
"HEADSCALE_SERVER_URL": "http://headscale:8080",
|
|
|
|
"HEADSCALE_DERP_URLS": "https://controlplane.tailscale.com/derpmap/default",
|
|
|
|
"HEADSCALE_DERP_AUTO_UPDATE_ENABLED": "false",
|
|
|
|
"HEADSCALE_DERP_UPDATE_FREQUENCY": "1m",
|
2024-04-17 05:03:06 +00:00
|
|
|
|
|
|
|
// a bunch of tests (ACL/Policy) rely on predicable IP alloc,
|
|
|
|
// so ensure the sequential alloc is used by default.
|
|
|
|
"HEADSCALE_PREFIXES_ALLOCATION": string(types.IPAllocationStrategySequential),
|
2023-01-05 11:44:28 +00:00
|
|
|
}
|
|
|
|
}
|