diff --git a/14.0/unit/Dockerfile b/14.0/unit/Dockerfile index 119ffe1..7701679 100644 --- a/14.0/unit/Dockerfile +++ b/14.0/unit/Dockerfile @@ -33,6 +33,9 @@ RUN set -ex; \ php-memcached \ php-redis \ php-imagick \ + php-xml \ + php-mbstring \ + php-curl \ ; \ \ rm -rf /var/lib/apt/lists/* @@ -101,6 +104,18 @@ RUN \ '{ \ "listeners": { "*:9000": { "pass": "routes" } }, \ "routes": [ \ + { "match": { "uri": "/console.php" }, "action": { "pass": "applications/direct_php" } }, \ + { "match": { "uri": "/cron.php" }, "action": { "pass": "applications/direct_php" } }, \ + { "match": { "uri": "/index.php" }, "action": { "pass": "applications/direct_php" } }, \ + { "match": { "uri": "/public.php" }, "action": { "pass": "applications/direct_php" } }, \ + { "match": { "uri": "/remote.php" }, "action": { "pass": "applications/direct_php" } }, \ + { "match": { "uri": "/status.php" }, "action": { "pass": "applications/direct_php" } }, \ + { "match": { "uri": "/version.php" }, "action": { "pass": "applications/direct_php" } }, \ + { "match": { "uri": "/core/img/*" }, "action": { "share": "/var/www/html" } }, \ + { "match": { "uri": "/core/css/*" }, "action": { "share": "/var/www/html" } }, \ + { "match": { "uri": "/core/fonts/*" }, "action": { "share": "/var/www/html" } }, \ + { "match": { "uri": "/core/js/*" }, "action": { "share": "/var/www/html" } }, \ + { "match": { "uri": "/themes/*" }, "action": { "share": "/var/www/html" } }, \ { "action": { "pass": "applications/index_php" } } \ ], \ "applications": { \ @@ -111,6 +126,14 @@ RUN \ "group": "www-data", \ "root": "/var/www/html", \ "script": "index.php" \ + }, \ + "direct_php": { \ + "type": "php", \ + "processes": { "max": 5, "spare": 0 }, \ + "user": "www-data", \ + "group": "www-data", \ + "root": "/var/www/html", \ + "index": "index.php" \ } \ } \ }' \ diff --git a/15.0/unit/Dockerfile b/15.0/unit/Dockerfile index c57ec29..beb5255 100644 --- a/15.0/unit/Dockerfile +++ b/15.0/unit/Dockerfile @@ -33,6 +33,9 @@ RUN set -ex; \ php-memcached \ php-redis \ php-imagick \ + php-xml \ + php-mbstring \ + php-curl \ ; \ \ rm -rf /var/lib/apt/lists/* @@ -101,6 +104,18 @@ RUN \ '{ \ "listeners": { "*:9000": { "pass": "routes" } }, \ "routes": [ \ + { "match": { "uri": "/console.php" }, "action": { "pass": "applications/direct_php" } }, \ + { "match": { "uri": "/cron.php" }, "action": { "pass": "applications/direct_php" } }, \ + { "match": { "uri": "/index.php" }, "action": { "pass": "applications/direct_php" } }, \ + { "match": { "uri": "/public.php" }, "action": { "pass": "applications/direct_php" } }, \ + { "match": { "uri": "/remote.php" }, "action": { "pass": "applications/direct_php" } }, \ + { "match": { "uri": "/status.php" }, "action": { "pass": "applications/direct_php" } }, \ + { "match": { "uri": "/version.php" }, "action": { "pass": "applications/direct_php" } }, \ + { "match": { "uri": "/core/img/*" }, "action": { "share": "/var/www/html" } }, \ + { "match": { "uri": "/core/css/*" }, "action": { "share": "/var/www/html" } }, \ + { "match": { "uri": "/core/fonts/*" }, "action": { "share": "/var/www/html" } }, \ + { "match": { "uri": "/core/js/*" }, "action": { "share": "/var/www/html" } }, \ + { "match": { "uri": "/themes/*" }, "action": { "share": "/var/www/html" } }, \ { "action": { "pass": "applications/index_php" } } \ ], \ "applications": { \ @@ -111,6 +126,14 @@ RUN \ "group": "www-data", \ "root": "/var/www/html", \ "script": "index.php" \ + }, \ + "direct_php": { \ + "type": "php", \ + "processes": { "max": 5, "spare": 0 }, \ + "user": "www-data", \ + "group": "www-data", \ + "root": "/var/www/html", \ + "index": "index.php" \ } \ } \ }' \ diff --git a/16.0/unit/Dockerfile b/16.0/unit/Dockerfile index 42bcfdc..8ec1333 100644 --- a/16.0/unit/Dockerfile +++ b/16.0/unit/Dockerfile @@ -33,6 +33,9 @@ RUN set -ex; \ php-memcached \ php-redis \ php-imagick \ + php-xml \ + php-mbstring \ + php-curl \ ; \ \ rm -rf /var/lib/apt/lists/* @@ -101,6 +104,18 @@ RUN \ '{ \ "listeners": { "*:9000": { "pass": "routes" } }, \ "routes": [ \ + { "match": { "uri": "/console.php" }, "action": { "pass": "applications/direct_php" } }, \ + { "match": { "uri": "/cron.php" }, "action": { "pass": "applications/direct_php" } }, \ + { "match": { "uri": "/index.php" }, "action": { "pass": "applications/direct_php" } }, \ + { "match": { "uri": "/public.php" }, "action": { "pass": "applications/direct_php" } }, \ + { "match": { "uri": "/remote.php" }, "action": { "pass": "applications/direct_php" } }, \ + { "match": { "uri": "/status.php" }, "action": { "pass": "applications/direct_php" } }, \ + { "match": { "uri": "/version.php" }, "action": { "pass": "applications/direct_php" } }, \ + { "match": { "uri": "/core/img/*" }, "action": { "share": "/var/www/html" } }, \ + { "match": { "uri": "/core/css/*" }, "action": { "share": "/var/www/html" } }, \ + { "match": { "uri": "/core/fonts/*" }, "action": { "share": "/var/www/html" } }, \ + { "match": { "uri": "/core/js/*" }, "action": { "share": "/var/www/html" } }, \ + { "match": { "uri": "/themes/*" }, "action": { "share": "/var/www/html" } }, \ { "action": { "pass": "applications/index_php" } } \ ], \ "applications": { \ @@ -111,6 +126,14 @@ RUN \ "group": "www-data", \ "root": "/var/www/html", \ "script": "index.php" \ + }, \ + "direct_php": { \ + "type": "php", \ + "processes": { "max": 5, "spare": 0 }, \ + "user": "www-data", \ + "group": "www-data", \ + "root": "/var/www/html", \ + "index": "index.php" \ } \ } \ }' \