Merge pull request #224 from stefaweb/nginx-update-for-autodiscover

Nginx vhost template update for autodiscover
This commit is contained in:
Antoine Nguyen
2018-10-01 13:36:50 +02:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@@ -6,6 +6,7 @@ server {
listen 80; listen 80;
listen [::]:80; listen [::]:80;
server_name %hostname; server_name %hostname;
root /srv/automx/instance;
access_log /var/log/nginx/%{hostname}-access.log; access_log /var/log/nginx/%{hostname}-access.log;
error_log /var/log/nginx/%{hostname}-error.log; error_log /var/log/nginx/%{hostname}-error.log;

View File

@@ -63,7 +63,7 @@ class Nginx(base.Installer):
self.config.get("general", "domain")) self.config.get("general", "domain"))
self._setup_config("automx", hostname) self._setup_config("automx", hostname)
extra_modoboa_config = """ extra_modoboa_config = """
location /autodiscover/autodiscover.xml { location ~* ^/autodiscover/autodiscover.xml {
include uwsgi_params; include uwsgi_params;
uwsgi_pass automx; uwsgi_pass automx;
} }