From bb11168c31064d6be6cba3b8f2c48bf3a70f02e8 Mon Sep 17 00:00:00 2001 From: JimboJoe Date: Sun, 26 Mar 2017 21:07:13 +0200 Subject: [PATCH] Fix for missing YunoHost tiles (#276) This PR: - brings back [this PR](https://github.com/YunoHost/yunohost-config-nginx/pull/3/files) which seems to have stayed behind when migrating from `yunohost-config-nginx`. It fixes the missing tile for Jirafeau app (and maybe others). - adds a fix to serve `ynhpanel.*` files whatever the app ningx rules are (some apps nginx conf files block them, like duniter or nextcloud). --- data/templates/nginx/plain/yunohost_panel.conf.inc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/data/templates/nginx/plain/yunohost_panel.conf.inc b/data/templates/nginx/plain/yunohost_panel.conf.inc index 0ca8b02aa..34afe136d 100644 --- a/data/templates/nginx/plain/yunohost_panel.conf.inc +++ b/data/templates/nginx/plain/yunohost_panel.conf.inc @@ -1,2 +1,8 @@ +# Insert YunoHost panel sub_filter ''; sub_filter_once on; +# Apply to other mime types than text/html +sub_filter_types application/xhtml+xml; +# Prevent YunoHost panel files from being blocked by specific app rules +location ~ ynhpanel\.(js|json|css) { +}