-
Notifications
You must be signed in to change notification settings - Fork 4
/
config_app.lua
63 lines (51 loc) · 2.03 KB
/
config_app.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
-- #### Application variables ###
CONFIG = {}
CONFIG.PATH = [[/var/www/led/carlos/elua_builder]]
CONFIG.APP_NAME = "carlos-elua_builder"
CONFIG.ENABLE_SESSIONS = true
CONFIG.MAX_FILE_SIZE = 60000 * 1024 -- in bytes
CONFIG.LANGUAGE = "en-us"
-- enable this option when you want to use mapped URLs , like : "../app_name/controller/action/ID"
-- it is recommended that a rewrite rule is used, for example: "RewriteRule ^app_name/(.*)$ /cgi-bin/cgilua.cgi/app_name/web/start.lua?route=/$1 [L]"
CONFIG.ENABLE_MAPPED_URL = false
CONFIG.SHOW_FRIENDLY_ERRORS = false
CONFIG.SEND_EMAIL_ON_ERRORS = true
CONFIG.LIB_PATH = CONFIG.PATH.."/lib/"
CONFIG.LUA_PATH = CONFIG.LIB_PATH.."?/init.lua;"..CONFIG.LIB_PATH.."?/?.lua;"..CONFIG.LIB_PATH.."?.lua;"
package.path = CONFIG.LUA_PATH..[[/?.lua;]]..package.path
CONFIG.COOKIE_NAME = "complement"
CONFIG.MD5KEY = "lua-kepler"
-- ### MVC Definitions ###
CONFIG.MVC_LIB = CONFIG.PATH.."/app/lib/"
CONFIG.MVC_CONTROL = CONFIG.PATH.."/app/controllers/"
CONFIG.MVC_VIEW = CONFIG.PATH.."/app/views/"
CONFIG.MVC_MODEL = CONFIG.PATH.."/app/models/"
CONFIG.MVC_LOCALE = CONFIG.PATH.."/app/locale/"
CONFIG.MVC_WEB = CONFIG.PATH.."/app/web/"
CONFIG.MVC_TEMPLATES = CONFIG.PATH.."/app/templates/"
CONFIG.MVC_TMP = CONFIG.PATH.."/tmp/"
CONFIG.MVC_REPORTS = CONFIG.PATH.."/app/reports/"
CONFIG.MVC_USERS = CONFIG.PATH.."/users/"
CONFIG.ELUA_BASE = CONFIG.PATH.."/elua_src_base/"
CONFIG.MVC_ROMFS = CONFIG.PATH.."/suggested_files/"
CONFIG.APP_DOMAIN = "ubuntu/carlos-elua_builder/start.lua"
--MAIL Server Variables
CONFIG.MAIL_SERVER = {
server = "xxx",
user = "xxx",
password = "xxx",
systemMailFrom = "xxx",
adminMailFrom = "xxx",
devMailFrom = "xxx",
devMailTo = "xxx",
environment = "DEVELOPMENT" -- Accepts "DEVELOPMENT" or "PRODUCTION"
}
-- DATABASE DEFINITIONS
CONFIG.DB = {
server = "localhost",
dbname = "xxx",
username = "xxx",
password = "xxx",
driver = "mysql"
}
dofile("../extra_cgilua_cfg.lua")