ThingWorx WebSocket-based Edge MicroServer (WS EMS) and Lua Script Resource (LSR) > Configuring a Lua Script Resource
Configuring a Lua Script Resource
When creating a Lua Script Resource (LSR), you create a configuration file, using the name, config.lua. This configuration file should be modeled after the example, config.lua.example. Your configuration file should be a text file that is separated into groups, with a group that sets logging levels, another one that configures edge things to run in the scripting environment, and a final one that defines any Lua Script extensions that are to be used by the Lua Script Resource.
To view this example of an LSR configuration file:
1. Open a command window or terminal session on the system or device that is hosting the Lua Script Resource.
2. Change into the \microserver\etc directory.
3. Open config.lua.example. Use this example as a reference while reading about the various groups of the configuration file.
The example file shows the main sections for configuring a Lua Script Resource. Follow the links below to read more about the properties of the configuration file:
HTTP Server Configuration (SSL/TLS certificates)
Configuring the Connection to the WS EMS
Edge Thing