Custom JavaScript
⚙️ Configuration
Variable | Default | Values | Details |
---|---|---|---|
JS | <empty> | <code> | JS code. Will be executed on every page navigated.added in v3.3 |
JS_URL | <empty> | <URL> | URL to JS file. Will be executed on every page navigated.added in v3.3 |
JS_URL_ONCE | <empty> | <URL> | URL to JS file. Will be executed only once on first visit. Subsequent navigation will not execute it again.added in v3.3 |
How to set configuration options
Set the environment variables when starting the container.
Use
Use
docker run
...- ...with
-e JS=<empty>
- ...with
--env-file .env
and placeJS=<empty>
in the file