nginx: Can add custom text before head and body (tracking links, ...)
This commit is contained in:
parent
0fcdcfaa7a
commit
4b97d20ff6
|
@ -34,4 +34,7 @@ then
|
|||
sed -i "s:location / {:location @notneeded {:" /etc/nginx/conf.d/default.conf
|
||||
fi
|
||||
|
||||
[ -n "${FIC_CUSTOM_HEAD}" ] && sed -i "s|</head>|${FIC_CUSTOM_HEAD}</head>|" "${PATH_STATIC}/index.html"
|
||||
[ -n "${FIC_CUSTOM_BODY}" ] && sed -i "s|</body>|${FIC_CUSTOM_BODY}</body>|" "${PATH_STATIC}/index.html"
|
||||
|
||||
exit 0
|
||||
|
|
Loading…
Reference in New Issue
Block a user