bunkerweb 1.4.0
This commit is contained in:
3
core/inject/confs/server-http/inject.conf
Normal file
3
core/inject/confs/server-http/inject.conf
Normal file
@@ -0,0 +1,3 @@
|
||||
{% if INJECT_BODY != "" +%}
|
||||
sub_filter '</body>' '{{ INJECT_BODY }}</body>';
|
||||
{% endif %}
|
||||
18
core/inject/plugin.json
Normal file
18
core/inject/plugin.json
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"id": "inject",
|
||||
"order": 999,
|
||||
"name": "HTML injection",
|
||||
"description": "Inject custom HTML code before the </body> tag.",
|
||||
"version": "0.1",
|
||||
"settings": {
|
||||
"INJECT_BODY": {
|
||||
"context": "multisite",
|
||||
"default": "",
|
||||
"help": "The HTML code to inject.",
|
||||
"id": "inject-body",
|
||||
"label": "HTML code",
|
||||
"regex": "^.*$",
|
||||
"type": "text"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user