mirror of
https://github.com/mynodebtc/mynode.git
synced 2025-01-11 11:29:27 +00:00
Add web server log to status page
This commit is contained in:
parent
ecda160e31
commit
19fdb38f6c
|
@ -549,6 +549,8 @@ def get_application_log(short_name):
|
|||
return get_journalctl_log("docker")
|
||||
elif short_name == "docker_image_build":
|
||||
return get_journalctl_log("docker_images")
|
||||
elif short_name == "www":
|
||||
return get_journalctl_log("www")
|
||||
else:
|
||||
return "ERROR: App or log not found ({})".format(short_name)
|
||||
|
||||
|
|
|
@ -263,6 +263,9 @@ def page_status():
|
|||
#"nginx_status_log": get_journalctl_log("nginx"),
|
||||
"nginx_status": get_service_status_basic_text("nginx"),
|
||||
"nginx_status_color": get_service_status_color("nginx"),
|
||||
#"www_status_log": get_journalctl_log("www"),
|
||||
"www_status": get_service_status_basic_text("www"),
|
||||
"www_status_color": get_service_status_color("www"),
|
||||
#"ufw_status_log": get_journalctl_log("ufw"),
|
||||
"ufw_status": get_service_status_basic_text("ufw"),
|
||||
"ufw_status_color": get_service_status_color("ufw"),
|
||||
|
|
|
@ -369,6 +369,15 @@
|
|||
<div id="nginx_status" style='text-align: left; font-size: 12px; width: 800px; display: none;'><pre>{{nginx_status_log}}</pre></div>
|
||||
<div class="divider"></div>
|
||||
|
||||
<div class="settings_block_subheader">Web Server Status</div>
|
||||
<div class="settings_block_subheader_status">
|
||||
<div class="settings_block_subheader_status_icon {{ www_status_color }}"></div>
|
||||
{{ www_status }}
|
||||
</div>
|
||||
<button id="show_www_status" onclick="showLog('www')" class="ui-button ui-widget ui-corner-all settings_button_small">Show Log</button>
|
||||
<div id="www_status" style='text-align: left; font-size: 12px; width: 800px; display: none;'><pre>{{www_status_log}}</pre></div>
|
||||
<div class="divider"></div>
|
||||
|
||||
<div class="settings_block_subheader">Firewall Status</div>
|
||||
<div class="settings_block_subheader_status">
|
||||
<div class="settings_block_subheader_status_icon {{ ufw_status_color }}"></div>
|
||||
|
|
Loading…
Reference in New Issue
Block a user