sync
This commit is contained in:
42
consul_backup/nginx_index
Normal file
42
consul_backup/nginx_index
Normal file
@@ -0,0 +1,42 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<title>Dashboard</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
|
||||
<link rel="stylesheet" href="https://www.w3schools.com/lib/w3-theme-blue-grey.css">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
|
||||
<body class="w3-theme-l4">
|
||||
|
||||
<div style="min-width:200px">
|
||||
<div class="w3-bar w3-large w3-theme-d4">
|
||||
<a href="#" class="w3-bar-item w3-button"><i class="fa fa-bars"></i></a>
|
||||
<span class="w3-bar-item">Dashboard</span>
|
||||
<a href="#" class="w3-bar-item w3-button w3-right"><i class="fa fa-search"></i></a>
|
||||
</div>
|
||||
<div class="w3-container w3-content">
|
||||
<p class="w3-opacity"><b>Tools</b></p>
|
||||
|
||||
|
||||
{{range services}}
|
||||
{{range $i, $s :=service .Name}}
|
||||
{{ if eq $i 0 }}
|
||||
{{if .Tags | contains "tools"}}
|
||||
<div class="w3-container w3-white w3-center w3-col s4 w3-cell-padding w3-card w3-mobile w3-margin" style="width30%; ">
|
||||
<p class="w3-text-blue"><b>{{.Name}}</b></p>
|
||||
{{$iconname := .Name}}
|
||||
{{range $tag, $services := service .Name | byTag }}{{if $tag | regexMatch "logo=*"}}{{$iconname = index ($tag | split "=") 1}}{{end}}{{end}}
|
||||
<a href="http://{{.Name}}.service.dc1.consul" target="_blank"><img src="./repo/png/{{$iconname}}.png" alt="HTML tutorial" class="w3-margin" style="width:84px;height:84px;"></a>
|
||||
</div>
|
||||
{{end}}{{end}}{{end}}{{end}}
|
||||
|
||||
|
||||
</div>
|
||||
<p>
|
||||
Node Environment Information: <br />
|
||||
node_id: {{ env "node.unique.id" }} <br/>
|
||||
datacenter: {{ env "NOMAD_DC" }}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user