mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Merge pull request #689 from YunoHost/tweaks_for_theme
[enh] Nginx conf tweaks for theme
This commit is contained in:
commit
bdc78530cf
1 changed files with 3 additions and 3 deletions
|
@ -1,8 +1,8 @@
|
|||
# Insert YunoHost panel
|
||||
sub_filter </head> '<script type="text/javascript" src="/ynhpanel.js"></script></head>';
|
||||
# Insert YunoHost button + portal overlay
|
||||
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;
|
||||
# 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) {
|
||||
location ~ (ynh_portal.js|ynh_overlay.css|ynh_userinfo.json) {
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue