From f90710a1cb95ccd8499c41fffb56195dacb3bb92 Mon Sep 17 00:00:00 2001 From: Mauro Torrez Date: Sat, 12 Oct 2019 10:49:41 -0300 Subject: [PATCH] tune nextcloud routing --- Dockerfile-unit.template | 51 ++++++++++++++++++++++++++++++---------- 1 file changed, 39 insertions(+), 12 deletions(-) diff --git a/Dockerfile-unit.template b/Dockerfile-unit.template index 52989ff..1d885f7 100644 --- a/Dockerfile-unit.template +++ b/Dockerfile-unit.template @@ -117,18 +117,45 @@ RUN \ }, \ "routes": { \ "main": [ \ - { "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" } }, \ + { \ + "match": { \ + "uri": [ \ + "/index.php*", \ + "/remote.php*", \ + "/public.php*", \ + "/cron.php*", \ + "/core/ajax/update.php*", \ + "/status.php*", \ + "/ocs/v1.php*", \ + "/ocs/v2.php*", \ + "/updater/*.php", \ + "/ocs-provider/*.php", \ + "/ocm-provider/*.php" \ + ] \ + }, \ + "action": { "pass": "applications/direct_php" } \ + }, \ + { \ + "match": { \ + "uri": [ \ + "*.css", \ + "*.js", \ + "*.woff", \ + "*.woff2", \ + "*.svg", \ + "*.gif", \ + "*.map", \ + "*.png", \ + "*.html", \ + "*.ttf", \ + "*.ico", \ + "*.jpg", \ + "*.jpeg", \ + "*.bcmap" \ + ] \ + }, \ + "action": { "share": "/var/www/html" } \ + }, \ { "action": { "pass": "applications/index_php" } } \ ], \ "static": [ \