add postfixadmin
parent
9bf0abd3e5
commit
4097334294
@ -0,0 +1,2 @@
|
||||
---
|
||||
mailserver_postfixadmin_domain: ""
|
@ -0,0 +1,5 @@
|
||||
---
|
||||
- name: reload nginx
|
||||
systemd:
|
||||
name: nginx
|
||||
state: reloaded
|
@ -1,2 +1,4 @@
|
||||
dependencies:
|
||||
- role: webserver
|
||||
vars:
|
||||
webserver_php_enabled: true
|
||||
|
@ -0,0 +1,21 @@
|
||||
location /postfixadmin {
|
||||
rewrite ^/postfixadmin/?(.*)$ /postfixadmin/public/$1 last;
|
||||
}
|
||||
|
||||
location /postfixadmin/public {
|
||||
root /usr/share/webapps;
|
||||
index index.html index.htm index.php;
|
||||
|
||||
location ~ \.php(?:$|/) {
|
||||
fastcgi_split_path_info ^(.+.php)(/.+)$;
|
||||
fastcgi_pass unix:/run/php-fpm/php-fpm.sock;
|
||||
fastcgi_index index.php;
|
||||
|
||||
include fastcgi.conf;
|
||||
|
||||
fastcgi_param PHP_ADMIN_VALUE open_basedir=/etc/webapps/postfixadmin/:/usr/share/webapps/postfixadmin:/tmp:/usr/share/pear:/dev/urandom;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||
fastcgi_param HTTPS on;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue