github.com/manicqin/nomad@v0.9.5/dev/tls_cluster/client1.hcl (about)

     1  # Increase log verbosity
     2  log_level = "DEBUG"
     3  
     4  region = "foo"
     5  
     6  # Setup data dir
     7  data_dir = "/tmp/client1"
     8  
     9  # Enable the client
    10  client {
    11    enabled = true
    12  
    13    # For demo assume we are talking to server1. For production,
    14    # this should be like "nomad.service.consul:4647" and a system
    15    # like Consul used for service discovery.
    16    servers = ["127.0.0.1:4647"]
    17  }
    18  
    19  # Modify our port to avoid a collision with server1
    20  ports {
    21    http = 5656
    22  }
    23  
    24  tls {
    25    http = true
    26    rpc  = true
    27  
    28    ca_file   = "certs/nomad-ca.pem"
    29    cert_file = "certs/client.pem"
    30    key_file  = "certs/client-key.pem"
    31  
    32    verify_server_hostname = true
    33    verify_https_client    = true
    34  }