mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
ikiwiki: Implement diagnostics
This commit is contained in:
parent
20d8c56aa0
commit
3f9bcafeeb
@ -47,3 +47,13 @@ def init():
|
|||||||
def is_enabled():
|
def is_enabled():
|
||||||
"""Return whether the module is enabled."""
|
"""Return whether the module is enabled."""
|
||||||
return action_utils.webserver_is_enabled('ikiwiki-plinth')
|
return action_utils.webserver_is_enabled('ikiwiki-plinth')
|
||||||
|
|
||||||
|
|
||||||
|
def diagnose():
|
||||||
|
"""Run diagnostics and return the results."""
|
||||||
|
results = []
|
||||||
|
|
||||||
|
results.extend(action_utils.diagnose_url_on_all(
|
||||||
|
'https://{host}/ikiwiki', extra_options=['--no-check-certificate']))
|
||||||
|
|
||||||
|
return results
|
||||||
|
|||||||
@ -25,6 +25,10 @@
|
|||||||
<p>When enabled, the blogs and wikis will be available
|
<p>When enabled, the blogs and wikis will be available
|
||||||
from <a href="/ikiwiki">/ikiwiki</a>.</p>
|
from <a href="/ikiwiki">/ikiwiki</a>.</p>
|
||||||
|
|
||||||
|
{% include "diagnostics_button.html" with module="ikiwiki" %}
|
||||||
|
|
||||||
|
<h3>Configuration</h3>
|
||||||
|
|
||||||
<form class="form" method="post">
|
<form class="form" method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user