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) { +}