{ "name": "HTTP Share", "description": "Expose a server folder on the HTTP server", "version": "1.0", "script": "share.lua", "schema": { "type": "object", "properties": { "shares": { "title": "The shared folders to expose", "type": "array", "items": { "type": "object", "properties": { "name": { "title": "The URL path", "type": "string", "pattern": "^[%a%d_%-]+$", "default": "share" }, "dir": { "title": "The directory to share", "description": "Relative path from the work directory", "type": "string" }, "permissions": { "title": "The permissions", "type": "string", "default": "rwl" }, "mode": { "title": "The mode", "type": "string", "enumValues": [ {"const": "HTML", "title": "HTML"}, {"const": "HTTP", "title": "HTTP"}, {"const": "WebDAV", "title": "WebDAV"} ], "default": "HTML" } } } }, "proxies": { "title": "The resources to proxy", "type": "array", "items": { "type": "object", "properties": { "name": { "title": "The URL path", "type": "string", "pattern": "^[%a%d_%-]+$", "default": "share" }, "url": { "title": "The resource URL", "type": "string" } } } } } } }