-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.ctmpl
22 lines (21 loc) · 930 Bytes
/
index.ctmpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Welcome at the HTTP Router</title>
<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
<meta http-equiv="pragma" content="no-cache" />
</head>
<body bgcolor=white>
<p>This is the home page of the Consul NGiNX Router</p>
<ul>
{{range $index, $service := services}}{{range $tag, $services := service $service.Name | byTag}}{{if eq "http" $tag}}
<li>
HTTP service <script>document.write("<a href=\"" + document.location.protocol + "//{{$service.Name}}." + window.location.host + "\">{{$service.Name}}</a>");</script>
</li>
{{end}}{{end}}{{end}}
</ul>
</body>
</html>