Files
ziti/etc/edge.router_wss.yml
T
2020-10-08 08:14:45 -04:00

91 lines
3.4 KiB
YAML

v: 3
# (required) The certificates, ca chains, and private key used to represent this routers identity
#
# If the 'edge" section is enabled and enrollment is run, the files in this section will be written to with the results.
# The "key" value can be provided through any of the support private key engines (file, etc.).
#
# If the 'key' value is a file and that file exists; it is expected to a pre-generated private key. It will be used for
# the enrollment process and it will back the certificates generated during enrollment. If the file does not exist, it
# will be generated.
#
# The 'cert', 'server_cert', and 'ca' files will be overwritten with the results of the enrollment process.
#
# When running the ziti-router the files/values in this section will be read and used. The 'cert' value will be used
# as the client certificate to connect to the controller. The 'server_cert' is used for all servers/listeners. The
# 'ca' value is used to populate an internally Trusted CA pool.
identity:
cert: ${ZITI_DATA}/edge-router-client.cert.pem
server_cert: ${ZITI_DATA}/edge-router-server.cert.pem
key: ${ZITI_DATA}/edge-router.key.pem
ca: ${ZITI_DATA}/edge-router-ca-chain.cert.pem
#trace:
# path: 001.trace
#profile:
# memory:
# path: 001.memprof
# cpu:
# path: 001.cpuprof
ctrl:
endpoint: tls:127.0.0.1:6262
link:
dialers:
- binding: transport
# By having an 'edge' section defined, the ziti-router will attempt to parse the edge configuration. Removing this
# section, commenting out, or altering the name of the section will cause the router to no longer operate as an Edge
# Router.
edge:
# (required to engage this router for WSS)
underlay_type: wss
# (required) Information used to generate the initial registration CSR. For documentation on these fields please
# refer to the openssl documentation. These values MUST be supplied and have no defaults.
csr:
country: US
province: NC
locality: Charlotte
organization: NetFoundry
organizationalUnit: Ziti
# (required) SANs that this router's certs should contain. At least one IP or DNS SAN should be defined that matches
# the edge listeners "advertise" value from the "listeners" section.
sans:
dns:
- "localhost"
- "test-network"
- "test-network.localhost"
- "ziti-dev-ingress01"
email:
- "admin@example.com"
ip:
- "127.0.0.1"
uri:
- "ziti://ziti-dev-router01/made/up/example"
# (optional) Configuration specific to the controller's API that is proxied through this process. If not defined
# the API Proxy will not run.
apiProxy:
# (required) The interface and port that the Edge API should be served on.
listener: 0.0.0.0:1080
# (required) The hostname and port combination to the ziti-controller hosted Edge API
upstream: 127.0.0.1:1280
dialers:
- binding: udp
- binding: transport
listeners:
- binding: edge_wss
address: tls:0.0.0.0:3023
identity:
server_cert: ${ZITI_DATA}/edge-router-server.cert.pem
key: ${ZITI_DATA}/edge-router.key.pem
options:
# (required) The public hostname and port combination that Ziti SDKs should connect on. Previously this was in the chanIngress section.
advertise: 127.0.0.1:3023