1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-04-03 00:07:05 +00:00

option to disable Nextcloud items in management console

This commit is contained in:
Jaroslaw Wencel 2022-09-28 23:54:10 +02:00
parent f123787dc6
commit ed22e1194a
3 changed files with 8 additions and 0 deletions

View File

@ -134,6 +134,8 @@ def index():
backup_s3_hosts=backup_s3_hosts,
csr_country_codes=csr_country_codes,
nextcloud_enable=env['NEXTCLOUD_ENABLE']
)
# Create a session key by checking the username/password in the Authorization header.

View File

@ -139,7 +139,9 @@
<li><a href="#mfa" onclick="return show_panel(this);">Two-Factor Authentication</a></li>
</ul>
</li>
{% if nextcloud_enable==1 %}
<li><a href="#sync_guide" onclick="return show_panel(this);" class="if-logged-in">Contacts/Calendar</a></li>
{% endif %}
<li><a href="#web" onclick="return show_panel(this);" class="if-logged-in-admin">Web</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
@ -190,9 +192,11 @@
{% include "aliases.html" %}
</div>
{% if nextcloud_enable==1 %}
<div id="panel_sync_guide" class="admin_panel">
{% include "sync-guide.html" %}
</div>
{% endif %}
<div id="panel_web" class="admin_panel">
{% include "web.html" %}

View File

@ -103,6 +103,8 @@ mkdir -p /var/lib/mailinabox
tr -cd '[:xdigit:]' < /dev/urandom | head -c 32 > /var/lib/mailinabox/api.key
chmod 640 /var/lib/mailinabox/api.key
source /etc/mailinabox.conf
source $venv/bin/activate
export PYTHONPATH=$(pwd)/management
exec gunicorn -b localhost:10222 -w 1 wsgi:app