datacenter = "dc1" data_dir = "/opt/nomad/data" log_level = "INFO" # 使用Tailscale网络,但绑定到本地接口 bind_addr = "0.0.0.0" server { enabled = false } # 启用客户端模式,支持混合存储 client { enabled = true servers = ["100.116.158.95:4647"] # 配置host volumes host_volume "fnsync" { path = "/mnt/fnsync" read_only = false } } # 指定Tailscale地址用于通信 addresses { http = "{{ ansible_host }}" rpc = "{{ ansible_host }}" serf = "{{ ansible_host }}" } advertise { http = "{{ ansible_host }}:4646" rpc = "{{ ansible_host }}:4647" serf = "{{ ansible_host }}:4648" } consul { address = "100.116.158.95:8500" }