mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-04-04 00:17:06 +00:00
option to disable Nextcloud items in management console
This commit is contained in:
parent
f123787dc6
commit
ed22e1194a
@ -134,6 +134,8 @@ def index():
|
|||||||
|
|
||||||
backup_s3_hosts=backup_s3_hosts,
|
backup_s3_hosts=backup_s3_hosts,
|
||||||
csr_country_codes=csr_country_codes,
|
csr_country_codes=csr_country_codes,
|
||||||
|
|
||||||
|
nextcloud_enable=env['NEXTCLOUD_ENABLE']
|
||||||
)
|
)
|
||||||
|
|
||||||
# Create a session key by checking the username/password in the Authorization header.
|
# Create a session key by checking the username/password in the Authorization header.
|
||||||
|
@ -139,7 +139,9 @@
|
|||||||
<li><a href="#mfa" onclick="return show_panel(this);">Two-Factor Authentication</a></li>
|
<li><a href="#mfa" onclick="return show_panel(this);">Two-Factor Authentication</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
{% if nextcloud_enable==1 %}
|
||||||
<li><a href="#sync_guide" onclick="return show_panel(this);" class="if-logged-in">Contacts/Calendar</a></li>
|
<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>
|
<li><a href="#web" onclick="return show_panel(this);" class="if-logged-in-admin">Web</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
<ul class="nav navbar-nav navbar-right">
|
<ul class="nav navbar-nav navbar-right">
|
||||||
@ -190,9 +192,11 @@
|
|||||||
{% include "aliases.html" %}
|
{% include "aliases.html" %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{% if nextcloud_enable==1 %}
|
||||||
<div id="panel_sync_guide" class="admin_panel">
|
<div id="panel_sync_guide" class="admin_panel">
|
||||||
{% include "sync-guide.html" %}
|
{% include "sync-guide.html" %}
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<div id="panel_web" class="admin_panel">
|
<div id="panel_web" class="admin_panel">
|
||||||
{% include "web.html" %}
|
{% include "web.html" %}
|
||||||
|
@ -103,6 +103,8 @@ mkdir -p /var/lib/mailinabox
|
|||||||
tr -cd '[:xdigit:]' < /dev/urandom | head -c 32 > /var/lib/mailinabox/api.key
|
tr -cd '[:xdigit:]' < /dev/urandom | head -c 32 > /var/lib/mailinabox/api.key
|
||||||
chmod 640 /var/lib/mailinabox/api.key
|
chmod 640 /var/lib/mailinabox/api.key
|
||||||
|
|
||||||
|
source /etc/mailinabox.conf
|
||||||
|
|
||||||
source $venv/bin/activate
|
source $venv/bin/activate
|
||||||
export PYTHONPATH=$(pwd)/management
|
export PYTHONPATH=$(pwd)/management
|
||||||
exec gunicorn -b localhost:10222 -w 1 wsgi:app
|
exec gunicorn -b localhost:10222 -w 1 wsgi:app
|
||||||
|
Loading…
Reference in New Issue
Block a user