From 3440685ee5b2a37cdf1e98b6a0563a025ccebd0f Mon Sep 17 00:00:00 2001 From: Mauro Torrez Date: Fri, 11 Oct 2019 23:00:03 -0300 Subject: [PATCH] probando config nginx --- tasks/main.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 889c701..8cf39ef 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -93,11 +93,14 @@ {{ nginx_config | default({}) | combine({ nextcloud_domain: { "locations": { - nextcloud_web_root.rstrip('/')+'/': { - "proxy_pass": "http://{}:9000/".format(nextcloud_container) - } + '~ ^\/(?:index|remote|public|cron|core\/ajax\/update|status|ocs\/v[12]|updater\/.+|oc[ms]-provider\/.+)\.php(?:$|\/)': { + "proxy_pass": "http://{}:9001/".format(nextcloud_container) + }, + '/': { + "proxy_pass": "http://{}:9002/".format(nextcloud_container) } } + } }, recursive=True) }} - name: inspect nextcloud volume