Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
| indigo_2022.1_documentation:indigo_web_server [2022/11/13 02:20] – [Indigo Web Server] davel17 | indigo_2022.1_documentation:indigo_web_server [2024/06/27 00:08] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Indigo Web Server ====== | ||
| + | The Indigo Server contains a fully-functioning web server that you can use to serve content locally or via the Indigo Reflector Service (the Reflector requires an active Indigo Up To Date subscription). | ||
| + | ==== Web Assets Folder Structure ==== | ||
| + | Indigo 2022.1 contains special folders that are accessible to the Indigo Web Server which are located in: | ||
| + | < | ||
| + | / | ||
| + | </ | ||
| + | There are four stock folders located under this parent folder: | ||
| + | < | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | </ | ||
| + | |||
| + | As a convenience, | ||
| + | |||
| + | All assets you want to make available to the Indigo Web Server should be stored in these folders. | ||
| + | |||
| + | === images folder === | ||
| + | This folder is used to publish files and make them available in the Indigo UI for use in control pages (and for other purposes). More information on using this folder can be found in the [[: | ||
| + | |||
| + | === plugins folder === | ||
| + | With Indigo 2022.1, web server plugins are no longer supported. | ||
| + | |||
| + | === public folder === | ||
| + | This directory can be used to publish files from the Indigo Web Server that will be made available to anyone __**without any authentication**__. If someone knows the URL of your reflector, they will have access to any files that are in this | ||
| + | directory, so use it wisely. | ||
| + | |||
| + | For example: | ||
| + | < | ||
| + | https:// | ||
| + | http:// | ||
| + | http:// | ||
| + | </ | ||
| + | |||
| + | Basic MIME types will be determined from file extensions. Subdirectories are also allowed so you can create hierarchy: | ||
| + | < | ||
| + | https:// | ||
| + | https:// | ||
| + | </ | ||
| + | |||
| + | Any files and/or directories in the /public/ folder will need to be moved over when you upgrade to a new major version (the installer WILL NOT move them automatically). The public folder was added with Indigo version 7.1. | ||
| + | |||
| + | === static folder === | ||
| + | This directory can be used to publish files from the Indigo Web Server that will be made available to anyone __**with authentication**__. If someone knows the URL of your reflector, they will have access to any files that are in this directory once they have entered the appropriate authentication credentials for your reflector. | ||
| + | |||
| + | For example: | ||
| + | < | ||
| + | https:// | ||
| + | http:// | ||
| + | http:// | ||
| + | </ | ||
| + | |||
| + | Basic MIME types will be determined from file extensions. Subdirectories are also allowed so you can create hierarchy: | ||
| + | < | ||
| + | https:// | ||
| + | https:// | ||
| + | </ | ||
| + | |||
| + | === Authentication === | ||
| + | Information on Indigo Authentication options can be found on the [[: | ||
| + | |||
| + | === Example === | ||
| + | Using the Indigo Web Server and Web Assets folders is extremely easy. This example is for reference purposes and is not meant to be a primer on constructing Web content. There are many good tutorials online that you can refer to if needed. | ||
| + | |||
| + | First, create your content. For example, web sites often contain a '' | ||
| + | < | ||
| + | < | ||
| + | <html lang=" | ||
| + | < | ||
| + | <meta charset=" | ||
| + | < | ||
| + | </ | ||
| + | <body style=" | ||
| + | <div id=" | ||
| + | Hello world. | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | Using a plain text editor, save this code as '' | ||
| + | |||
| + | That's it! The Indigo Web Server will serve your web page via the appropriate method. | ||