Merge pull request #224 from stefaweb/nginx-update-for-autodiscover
Nginx vhost template update for autodiscover
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user