fix mailserver spamassassin and warehost-host caddy template
This commit is contained in:
parent
28f344571e
commit
57a159a6d4
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
- name: Spamassassin update
|
||||
command: sa-update -v
|
||||
command: /usr/bin/vendor_perl/sa-update -v
|
||||
register: bass_result
|
||||
changed_when: "bass_result.rc != 1"
|
||||
ignore_errors: yes
|
||||
|
|
|
@ -8,7 +8,9 @@
|
|||
{{if not .Redirect}}
|
||||
gzip
|
||||
{{if .Proxy}}
|
||||
proxy / {{.Proxy}}
|
||||
proxy / {{.Proxy}} {
|
||||
header_upstream Host {host}
|
||||
}
|
||||
{{else}}
|
||||
root [% warehost_host_web_webroot %]/{{template "domain" .}}
|
||||
{{if .PHP}}
|
||||
|
@ -16,7 +18,7 @@
|
|||
env PHP_ADMIN_VALUE "open_basedir=/tmp:/usr/share/webapps/:/etc/webapps/:/usr/share/pear:/dev/urandom:[% warehost_host_web_webroot %]/{{template "domain" .}}"
|
||||
}
|
||||
rewrite {
|
||||
to {path} {path}/ /index.php?_url={uri}
|
||||
to {path} {path}/ /index.php/{uri}
|
||||
}
|
||||
{{end}}
|
||||
{{end}}
|
||||
|
@ -29,7 +31,7 @@
|
|||
{{if .SSLRedirect}}
|
||||
http://{{template "domain".}} {
|
||||
{{if not .Redirect}}
|
||||
redir https://{{template "domain".}}{uri}
|
||||
redir {{template "domain".}}{uri}
|
||||
{{else}}
|
||||
{{template "content" .}}
|
||||
{{end}}
|
||||
|
|
Reference in New Issue