-- ***************************** -- LUNA Server configuration file -- ***************************** Version = "0.3.1" LogFile = "server.log" -- ************************ -- * Portals (max 128) * -- ************************ NumberOfPortals = 5 Portal1 = { name = "/demo1", root="webapps/demo1/web/", entry="index.html", script="webapps/demo1/demo1.lua", sessiontimeout = 0 } Portal2 = { name = "/demo2", root="webapps/demo2/web/", entry="index.html", script="webapps/demo2/demo2.lua", sessiontimeout = 0 } Portal3 = { name = "/demo3", root="webapps/demo3/web/", entry="index.html", script="webapps/demo3/demo3.lua", sessiontimeout = 0 } Portal4 = { name = "/demoapp", root="webapps/demoapp/webroot/", entry="index.html", script="webapps/demoapp/main.lua", sessiontimeout = 2000 } Portal5 = { name = "/queuedemo", root="webapps/queue/", entry="index.html", script="webapps/queue/api/api.lua", sessiontimeout = 0 } -- ********************** -- * API calls * -- ********************** ServerPOST = "LUNAAPI_POST" ServerGET = "LUNAAPI_GET" ServerPUT = "LUNAAPI_PUT" ServerDELETE = "LUNAAPI_DELETE" ServerSESSION= "LUNAAPI_SESSIONCLOSEQUERY" -- ********************* -- * HTTP default root * -- ********************* WebRoot = "webapps/" ServerScript = WebRoot.."index.lua" DefaultDoc = "index.html" BadDocRequest= "error.html" -- ******************* -- * Session options * -- ******************* SessionManager = 1 SessionTimeout = 1000000 -- long long time :) SessionRoot = "session/" -- ******************* -- * Binding options * -- ******************* Protocol = "http" -- http / https BindPort = 8080 -- 80 / 443 BindIP = "0.0.0.0" -- *************** -- * SSL options * -- *************** SSLCertPass = "aaaa" SSLRootCert = "cert/root.pem" SSLCertFile = "cert/cert.pem" SSLKeyFile = "cert/key.pem"