improve browser / url help

This commit is contained in:
Thomas Waldmann 2013-12-07 12:01:39 +01:00
parent aac6b553f3
commit 6eb412c45d

View File

@ -153,7 +153,24 @@ password='{{ update_secret|default:"<your secret>" }}'
</pre> </pre>
</div> </div>
<div class="tab-pane" id="browser"> <div class="tab-pane" id="browser">
<h4>Easy update URLs</h4> <h4>Update URLs for browser / http user agent use</h4>
Interactive - will ask for username (give your hostname) and password (give your secret):
<ul>
<li>https://{{ WWW_HOST }}/nic/update (updates hostname to point to remote ipv4 or ipv6 address)</li>
<li>https://{{ WWW_IPV4_HOST }}/nic/update (similar, but ipv4 only)</li>
<li>https://{{ WWW_IPV6_HOST }}/nic/update (similar, but ipv6 only)</li>
</ul>
Giving the http basic auth username and password in the URL:
<ul>
<li>https://{{ host.get_fqdn|default:"&lt;your hostname&gt;" }}:{{ update_secret|default:"&lt;your secret&gt;" }}@{{ WWW_HOST }}/nic/update (updates hostname to point to remote ipv4 or ipv6 address)</li>
<li>https://{{ host.get_fqdn|default:"&lt;your hostname&gt;" }}:{{ update_secret|default:"&lt;your secret&gt;" }}@{{ WWW_IPV4_HOST }}/nic/update (similar, but ipv4 only)</li>
<li>https://{{ host.get_fqdn|default:"&lt;your hostname&gt;" }}:{{ update_secret|default:"&lt;your secret&gt;" }}@{{ WWW_IPV6_HOST }}/nic/update (similar, but ipv6 only)</li>
</ul>
As above, but manually specifying the IP address:
<ul>
<li>https://{{ host.get_fqdn|default:"&lt;your hostname&gt;" }}:{{ update_secret|default:"&lt;your secret&gt;" }}@{{ WWW_HOST }}/nic/update?myip=127.0.0.1 (updates hostname to point to ipv4 127.0.0.1)</li>
<li>https://{{ host.get_fqdn|default:"&lt;your hostname&gt;" }}:{{ update_secret|default:"&lt;your secret&gt;" }}@{{ WWW_HOST }}/nic/update?myip=::1 (updates hostname to point to ipv6 ::1)</li>
</ul>
Explanation of parameters: Explanation of parameters:
<ul> <ul>
{% if not host %} {% if not host %}
@ -166,22 +183,5 @@ password='{{ update_secret|default:"&lt;your secret&gt;" }}'
of course you need to use your real public IP instead of that. of course you need to use your real public IP instead of that.
</li> </li>
</ul> </ul>
For browser / interactive use (will ask for username (give your hostname) and password (give yoursecret)):
<ul>
<li>https://{{ WWW_HOST }}/nic/update (updates hostname to point to remote ipv4 or ipv6 address)</li>
<li>https://{{ WWW_IPV4_HOST }}/nic/update (updates hostname to point to remote ipv4 address)</li>
<li>https://{{ WWW_IPV6_HOST }}/nic/update (updates hostname to point to remote ipv6 address)</li>
</ul>
For browser / interactive use (give http basic auth username and password in URL):
<ul>
<li>https://{{ host.get_fqdn|default:"&lt;your hostname&gt;" }}:{{ update_secret|default:"&lt;your secret&gt;" }}@{{ WWW_HOST }}/nic/update (updates hostname to point to remote ipv4 or ipv6 address)</li>
<li>https://{{ host.get_fqdn|default:"&lt;your hostname&gt;" }}:{{ update_secret|default:"&lt;your secret&gt;" }}@{{ WWW_IPV4_HOST }}/nic/update (updates hostname to point to remote ipv4 address)</li>
<li>https://{{ host.get_fqdn|default:"&lt;your hostname&gt;" }}:{{ update_secret|default:"&lt;your secret&gt;" }}@{{ WWW_IPV6_HOST }}/nic/update (updates hostname to point to remote ipv6 address)</li>
</ul>
For browser / interactive use as above, but manually specifying the IP address:
<ul>
<li>https://{{ host.get_fqdn|default:"&lt;your hostname&gt;" }}:{{ update_secret|default:"&lt;your secret&gt;" }}@{{ WWW_HOST }}/nic/update?myip=127.0.0.1 (updates hostname to point to ipv4 127.0.0.1)</li>
<li>https://{{ host.get_fqdn|default:"&lt;your hostname&gt;" }}:{{ update_secret|default:"&lt;your secret&gt;" }}@{{ WWW_HOST }}/nic/update?myip=::1 (updates hostname to point to ipv6 ::1)</li>
</ul>
</div> </div>
</div> </div>