Fixing bug in template render with edge routers
@@ -52,13 +52,6 @@ listeners:
# advertise: {{ .ZitiEdgeRouterHostname }}:{{if .WssEnabled}}3023{{else}}{{ .ZitiEdgeRouterPort }}{{end}}
# connectTimeoutMs: 5000
# getSessionTimeout: 60s
-{{- else if .WssEnabled }}
- - binding: edge
- address: {{if .WssEnabled}}ws{{else}}tls{{end}}:0.0.0.0:{{if .WssEnabled}}3023{{else}}{{ .ZitiEdgeRouterPort }}{{end}}
- options:
- advertise: {{ .ZitiEdgeRouterHostname }}:{{if .WssEnabled}}3023{{else}}{{ .ZitiEdgeRouterPort }}{{end}}
- connectTimeoutMs: 5000
- getSessionTimeout: 60s
{{- else if .IsFabricRouter }}
- binding: transport
address: tls:0.0.0.0:{{ .ZitiEdgeRouterPort }}
@@ -66,6 +59,13 @@ listeners:
advertise: {{ .ZitiEdgeRouterHostname }}:{{ .ZitiEdgeRouterPort }}
connectTimeoutMs: 5000
getSessionTimeout: 60s
+{{- else }}
+ - binding: edge
+ address: {{if .WssEnabled}}ws{{else}}tls{{end}}:0.0.0.0:{{if .WssEnabled}}3023{{else}}{{ .ZitiEdgeRouterPort }}{{end}}
+ options:
+ advertise: {{ .ZitiEdgeRouterHostname }}:{{if .WssEnabled}}3023{{else}}{{ .ZitiEdgeRouterPort }}{{end}}
+ connectTimeoutMs: 5000
+ getSessionTimeout: 60s
{{ end }}
{{- if or .IsPrivate .IsFabricRouter }}
