Merge pull request #689 from YunoHost/tweaks_for_theme

[enh] Nginx conf tweaks for theme
This commit is contained in:
Alexandre Aubin 2019-04-01 02:50:44 +02:00 committed by GitHub
commit bdc78530cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,8 +1,8 @@
# Insert YunoHost panel # Insert YunoHost button + portal overlay
sub_filter </head> '<script type="text/javascript" src="/ynhpanel.js"></script></head>'; sub_filter </head> '<script type="text/javascript" src="/ynh_portal.js"></script><link type="text/css" rel="stylesheet" href="/ynh_overlay.css"></link><script type="text/javascript" src="/ynhtheme/custom_portal.js"></script><link type="text/css" rel="stylesheet" href="/ynhtheme/custom_overlay.css"></link></head>';
sub_filter_once on; sub_filter_once on;
# Apply to other mime types than text/html # Apply to other mime types than text/html
sub_filter_types application/xhtml+xml; sub_filter_types application/xhtml+xml;
# Prevent YunoHost panel files from being blocked by specific app rules # Prevent YunoHost panel files from being blocked by specific app rules
location ~ ynhpanel\.(js|json|css) { location ~ (ynh_portal.js|ynh_overlay.css|ynh_userinfo.json) {
} }