SSOwat/init.lua

17 lines
298 B
Lua
Raw Normal View History

2013-10-15 10:11:39 +02:00
-- Load libraries
2013-10-15 13:58:16 +02:00
json = require "json"
2013-10-15 10:11:39 +02:00
lualdap = require "lualdap"
math = require "math"
-- Set random key
math.randomseed(os.time())
2013-10-16 20:37:12 +02:00
srvkey = math.random(1111111, 9999999)
2013-10-15 10:11:39 +02:00
2013-10-15 13:58:16 +02:00
-- Shared table
2013-10-15 10:11:39 +02:00
tokens = {}
2013-10-16 11:27:18 +02:00
cache = {}
connections = {}
-- Path of the configuration
2013-10-16 20:47:37 +02:00
conf_path = '/etc/ssowat/conf.json'