1 <h1>Federation Upstreams</h1>
4 <div class="hider updatable">
5 <% if (upstreams.length > 0) { %>
9 <% if (vhosts_interesting) { %>
17 <th>Prefetch Count</th>
18 <th>Reconnect Delay</th>
20 <th>Trust User-ID</th>
25 for (var i = 0; i < upstreams.length; i++) {
26 var upstream = upstreams[i];
29 <% if (vhosts_interesting) { %>
30 <td><%= fmt_string(upstream.vhost) %></td>
32 <td><%= link_fed_conn(upstream.vhost, upstream.name) %></td>
33 <td><%= fmt_shortened_uri(upstream.value.uri) %></td>
34 <td class="r"><%= fmt_time(upstream.value.expires, 'ms') %></td>
35 <td class="r"><%= fmt_time(upstream.value['message-ttl'], 'ms') %></td>
36 <td class="r"><%= upstream.value['max-hops'] %></td>
37 <td class="r"><%= upstream.value['prefetch-count'] %></td>
38 <td class="r"><%= fmt_time(upstream.value['reconnect-delay'], 's') %></td>
39 <td class="c"><%= fmt_string(upstream.value['ack-mode']) %></td>
40 <td class="c"><%= fmt_boolean(upstream.value['trust-user-id']) %></td>
46 <p>... no upstreams ...</p>
51 <div class="section-hidden">
52 <h2>Add a new upstream</h2>
54 <form action="#/fed-parameters" method="put">
55 <input type="hidden" name="component" value="federation-upstream"/>
57 <% if (vhosts_interesting) { %>
59 <th><label>Virtual host:</label></th>
62 <% for (var i = 0; i < vhosts.length; i++) { %>
63 <option value="<%= fmt_string(vhosts[i].name) %>"><%= fmt_string(vhosts[i].name) %></option>
69 <tr><td><input type="hidden" name="vhost" value="<%= fmt_string(vhosts[0].name) %>"/></td></tr>
72 <th><label>Name:</label></th>
73 <td><input type="text" name="name"/><span class="mand">*</span></td>
79 <span class="help" id="federation-uri"></span>
82 <td><input type="text" name="uri"/><span class="mand">*</span></td>
88 <span class="help" id="federation-expires"></span>
91 <td><input type="text" name="expires"/> ms</td>
97 <span class="help" id="federation-ttl"></span>
100 <td><input type="text" name="message-ttl"/> ms</td>
106 <span class="help" id="federation-max-hops"></span>
109 <td><input type="text" name="max-hops"/></td>
115 <span class="help" id="federation-prefetch"></span>
118 <td><input type="text" name="prefetch-count"/></td>
124 <span class="help" id="federation-reconnect"></span>
127 <td><input type="text" name="reconnect-delay"/> s</td>
132 Acknowledgement Mode:
133 <span class="help" id="federation-ack-mode"></span>
137 <select name="ack-mode">
138 <option value="on-confirm">On confirm</option>
139 <option value="on-publish">On publish</option>
140 <option value="no-ack">No ack</option>
148 <span class="help" id="federation-trust-user-id"></span>
152 <select name="trust-user-id">
153 <option value="false">No</option>
154 <option value="true">Yes</option>
159 <input type="submit" value="Add upstream"/>
163 <div class="section-hidden">
164 <h2>URI examples</h2>
168 <code>amqp://server-name</code><br/>
169 connect to server-name, without SSL and default credentials
172 <code>amqp://user:password@server-name/my-vhost</code><br/>
173 connect to server-name, with credentials and overridden
177 <code>amqps://user:password@server-name?cacertfile=/path/to/cacert.pem&certfile=/path/to/cert.pem&keyfile=/path/to/key.pem&verify=verify_peer</code><br/>
178 connect to server-name, with credentials and SSL
181 <code>amqps://server-name?cacertfile=/path/to/cacert.pem&certfile=/path/to/cert.pem&keyfile=/path/to/key.pem&verify=verify_peer&fail_if_no_peer_cert=true&auth_mechanism=external</code><br/>
182 connect to server-name, with SSL and EXTERNAL authentication