nginx: Can add custom text before head and body (tracking links, ...)

This commit is contained in:
nemunaire 2023-08-03 12:59:41 +02:00
parent 0fcdcfaa7a
commit 4b97d20ff6

View File

@ -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