Starting with Indigo 2021.1, you can create a directory named
static in:
- Code: Select all
/Library/Application Support/Perceptive Automation/Indigo 2021.1/Web Assets/
Any content served from that directory is protected. Same for images that are served from the /images/ directory.
So, if you had a test.html file in the static directory, then this URL would work:
- Code: Select all
http://localhost:8176/static/test.html
also, from your reflector:
- Code: Select all
https://yourreflector.indigodomo.net/static/test.html
Relative links in your HTML file work, as do any level of directory hierarchy. For instance, you can have this directory structure:
- Code: Select all
/Library/Application Support/Perceptive Automation/Indigo 2021.1/Web Assets/static/html/test.html
/Library/Application Support/Perceptive Automation/Indigo 2021.1/Web Assets/static/css/test.css
And you can reference the css in the html file as:
- Code: Select all
<link href="../css/test.css" rel="stylesheet">
This capability will be expanded to plugins in Indigo 2021.2, due later this year.