mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
Documentation updated.
This commit is contained in:
@@ -157,7 +157,7 @@ Here is a sample nginx configuration::
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
|
||||
location ~ ^/(api|accounts) {
|
||||
location ~ ^/(api|accounts|autodiscover) {
|
||||
include uwsgi_params;
|
||||
uwsgi_param UWSGI_SCRIPT instance.wsgi:application;
|
||||
uwsgi_pass modoboa;
|
||||
@@ -175,11 +175,33 @@ Here is a sample nginx configuration::
|
||||
}
|
||||
}
|
||||
|
||||
``<modoboa instance name>``, ``<hostname>``, ``<modoboa_instance_path>`` and ``<ssl...>`` must be replaced by the value you used.
|
||||
``<uwsgi_socket_path>``
|
||||
``<uwsgi_socket_path>``, ``<modoboa instance name>``, ``<hostname>``,
|
||||
``<modoboa_instance_path>`` and ``<ssl...>`` must be replaced by the
|
||||
value you used when :ref:`you deployed your instance <deployment>`.
|
||||
|
||||
In case you want to use enable auto-configuration functionality,
|
||||
create a second virtualhost configuration (the hostname should look
|
||||
like ``autoconfig.<your domain here>``)::
|
||||
|
||||
when :ref:`you deployed your instance <deployment>`.
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name autoconfig.<your_domain>;
|
||||
root <modoboa_instance_path>;
|
||||
|
||||
access_log /var/log/nginx/autoconfig-access.log;
|
||||
error_log /var/log/nginx/autoconfig-error.log;
|
||||
|
||||
location ~ ^/(mail/config-v1.1.xml|mobileconfig) {
|
||||
include uwsgi_params;
|
||||
uwsgi_param UWSGI_SCRIPT instance.wsgi:application;
|
||||
uwsgi_pass modoboa;
|
||||
}
|
||||
}
|
||||
|
||||
``<modoboa_instance_path>`` and ``<your_domain>`` must be replaced by
|
||||
the value you used when :ref:`you deployed your instance
|
||||
<deployment>`.
|
||||
|
||||
If you do not plan to use SSL then change the listen directive to
|
||||
``listen 80;`` and delete each of the following directives::
|
||||
|
||||
@@ -181,6 +181,19 @@ Required changes to :file:`settings.py`
|
||||
'autoconfig.<MY DOMAIN>',
|
||||
'autodiscover.<MY DOMAIN>',
|
||||
|
||||
- Add the following variable:
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
EMAIL_CLIENT_CONNECTION_SETTINGS = {
|
||||
"imap": {
|
||||
"HOSTNAME": "<YOUR HOSTNAME HERE>",
|
||||
"SOCKET_TYPE": "SSL",
|
||||
"PORT": 993,
|
||||
},
|
||||
"smtp": {"HOSTNAME": "<YOUR HOSTNAME HERE>", "SOCKET_TYPE": "STARTTLS", "PORT": 587},
|
||||
}
|
||||
|
||||
- Remove ``rest_framework.authentication.SessionAuthentication`` from ``REST_FRAMEWORK`` variable:
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
Reference in New Issue
Block a user