diff --git a/Dockerfile-unit.template b/Dockerfile-unit.template index ce32d20..73134aa 100644 --- a/Dockerfile-unit.template +++ b/Dockerfile-unit.template @@ -32,6 +32,9 @@ RUN set -ex; \ php-memcached \ php-redis \ php-imagick \ + php-xml \ + php-mbstring \ + php-curl \ ; \ \ rm -rf /var/lib/apt/lists/* @@ -100,6 +103,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": { \ @@ -110,6 +125,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" \ } \ } \ }' \