1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-23 18:57:23 +01:00

more work on control panel integration

This commit is contained in:
John Supplee
2019-03-02 20:16:39 +02:00
parent 5615031ef8
commit fefb5ebc33
3 changed files with 32 additions and 18 deletions

View File

@@ -520,6 +520,20 @@ def privacy_status_set():
utils.write_settings(config, env)
return "OK"
# Mailgraph
@app.route('/mailgraph/image.cgi')
@authorized_personnel_only
def mailgraph():
if request.query_string:
return utils.shell(
"check_output",
["/usr/share/mailgraph/mailgraph.cgi"],
env={"QUERY_STRING": request.query_string}
)
return ''
# MUNIN
@app.route('/munin/')