From 3601d90aefd42219c32fe5792d39839f52c5c2af Mon Sep 17 00:00:00 2001 From: Jon Lockwood Date: Mon, 14 Feb 2022 10:01:49 +0930 Subject: [PATCH] fix(script): group-mailbox script must be executable MR !1 --- dockerfile | 1 + test/nginx/templates/default.conf.template | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100755 test/nginx/templates/default.conf.template diff --git a/dockerfile b/dockerfile index 09edde1..61206cf 100644 --- a/dockerfile +++ b/dockerfile @@ -89,6 +89,7 @@ RUN chmod +x /docker-entrypoint.sh \ # ensure dovecot related scripts are executable && chmod +x /bin/quota-warning.sh \ && chmod +x /bin/welcome-email.sh \ + && chmod +x /bin/group-mailbox.sh \ && chmod 744 /etc/dovecot/dovecot-acl \ # Postfix related commands && usermod -a -G vmail postfix \ diff --git a/test/nginx/templates/default.conf.template b/test/nginx/templates/default.conf.template new file mode 100755 index 0000000..254aa20 --- /dev/null +++ b/test/nginx/templates/default.conf.template @@ -0,0 +1,18 @@ +server { + index index.php index.html; + server_name php-docker.local; + error_log /var/log/nginx/error.log; + access_log /var/log/nginx/access-roundcube.log; + root /var/www/html; + + location ~ \.php$ { + try_files $uri =404; + fastcgi_split_path_info ^(.+\.php)(/.+)$; + fastcgi_pass ${NGINX_PHP_CGI}; + fastcgi_index index.php; + include fastcgi_params; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + fastcgi_param PATH_INFO $fastcgi_path_info; + } +} +