diff --git a/doc/manual_installation/webserver.rst b/doc/manual_installation/webserver.rst index d49aab372..47f8bd581 100644 --- a/doc/manual_installation/webserver.rst +++ b/doc/manual_installation/webserver.rst @@ -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:: } } -````, ````, ```` and ```` must be replaced by the value you used. -```` +````, ````, ````, +```` and ```` must be replaced by the +value you used when :ref:`you deployed your instance `. +In case you want to use enable auto-configuration functionality, +create a second virtualhost configuration (the hostname should look +like ``autoconfig.``):: -when :ref:`you deployed your instance `. + server { + listen 80; + listen [::]:80; + server_name autoconfig.; + root ; + + 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; + } +} + +```` and ```` must be replaced by +the value you used when :ref:`you deployed your instance +`. If you do not plan to use SSL then change the listen directive to ``listen 80;`` and delete each of the following directives:: diff --git a/doc/upgrade.rst b/doc/upgrade.rst index 113a9de01..27aae3c93 100644 --- a/doc/upgrade.rst +++ b/doc/upgrade.rst @@ -181,6 +181,19 @@ Required changes to :file:`settings.py` 'autoconfig.', 'autodiscover.', +- Add the following variable: + + .. sourcecode:: python + + EMAIL_CLIENT_CONNECTION_SETTINGS = { + "imap": { + "HOSTNAME": "", + "SOCKET_TYPE": "SSL", + "PORT": 993, + }, + "smtp": {"HOSTNAME": "", "SOCKET_TYPE": "STARTTLS", "PORT": 587}, + } + - Remove ``rest_framework.authentication.SessionAuthentication`` from ``REST_FRAMEWORK`` variable: .. sourcecode:: python