aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-10-23 18:03:23 -0700
committerChris Lu <chris.lu@gmail.com>2020-10-23 18:03:23 -0700
commitfc689319ae1e2cc268d2681afd74bbbfc3d969d4 (patch)
tree1d763594313e1ca8ed9bdcf4804a97223597800c
parent71624858afaa5ceb879c2e81e7c4fd7357879c25 (diff)
downloadseaweedfs-fc689319ae1e2cc268d2681afd74bbbfc3d969d4.tar.xz
seaweedfs-fc689319ae1e2cc268d2681afd74bbbfc3d969d4.zip
add volume public url
-rw-r--r--weed/server/master_ui/templates.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/weed/server/master_ui/templates.go b/weed/server/master_ui/templates.go
index 7189064d0..8e6b8333a 100644
--- a/weed/server/master_ui/templates.go
+++ b/weed/server/master_ui/templates.go
@@ -88,7 +88,11 @@ var StatusTpl = template.Must(template.New("status").Parse(`<!DOCTYPE html>
<tr>
<td><code>{{ $dc.Id }}</code></td>
<td>{{ $rack.Id }}</td>
- <td><a href="http://{{ $dn.Url }}/ui/index.html">{{ $dn.Url }}</a></td>
+ <td><a href="http://{{ $dn.Url }}/ui/index.html">{{ $dn.Url }}</a>
+ {{ if $dn.PublicUrl }}
+ / <a href="http://{{ $dn.PublicUrl }}/ui/index.html">{{ $dn.PublicUrl }}</a>
+ {{ end }}
+ </td>
<td>{{ $dn.Volumes }}</td>
<td>{{ $dn.VolumeIds}}</td>
<td>{{ $dn.EcShards }}</td>