better routes
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Mauro Torrez 2019-09-23 11:31:24 -03:00
parent 7b42bd2d03
commit e3cbe7bac8

View File

@ -32,6 +32,9 @@ RUN set -ex; \
php-memcached \ php-memcached \
php-redis \ php-redis \
php-imagick \ php-imagick \
php-xml \
php-mbstring \
php-curl \
; \ ; \
\ \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*
@ -100,6 +103,18 @@ RUN \
'{ \ '{ \
"listeners": { "*:9000": { "pass": "routes" } }, \ "listeners": { "*:9000": { "pass": "routes" } }, \
"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" } } \ { "action": { "pass": "applications/index_php" } } \
], \ ], \
"applications": { \ "applications": { \
@ -110,6 +125,14 @@ RUN \
"group": "www-data", \ "group": "www-data", \
"root": "/var/www/html", \ "root": "/var/www/html", \
"script": "index.php" \ "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" \
} \ } \
} \ } \
}' \ }' \