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

add instructions for static web hosting into the control panel

This commit is contained in:
Joshua Tauberer
2014-10-07 16:05:38 +00:00
parent bf9b770255
commit 6ab29c3244
4 changed files with 127 additions and 2 deletions

View File

@@ -74,6 +74,7 @@ def index():
no_admins_exist = (len([user for user in get_mail_users(env, as_json=True) if "admin" in user['privileges']]) == 0)
return render_template('index.html',
hostname=env['PRIMARY_HOSTNAME'],
storage_root=env['STORAGE_ROOT'],
no_admins_exist=no_admins_exist,
)
@@ -227,6 +228,12 @@ def dns_get_dump():
# WEB
@app.route('/web/domains')
@authorized_personnel_only
def web_get_domains():
from web_update import get_web_domains_info
return json_response(get_web_domains_info(env))
@app.route('/web/update', methods=['POST'])
@authorized_personnel_only
def web_update():