You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
1.6 KiB
Lua

local config = require "lapis.config"
local secret = assert(loadfile("../data/secrets/token.lua"))()
-- Use rewrite rules to create 'boards.' and 'static.' subdomains
-- Currently doesn't work, leave this as false!
local subdomains = false
-- Maximum file size (update this in scripts.js too!)
local body_size = "15m"
-- Maximum comment size (update this in scripts.js too!)
local text_size = 10000
-- Path to your lua libraries (LuaRocks and OpenResty)
local lua_path = "./src/?.lua;./src/?/init.lua"
local lua_cpath = ""
config("development", {
site_name = "[DEVEL] Lapis-chan",
port = 80,
secret = secret,
subdomains = subdomains,
body_size = body_size,
text_size = text_size,
lua_path = lua_path,
lua_cpath = lua_cpath,
postgres = {
host = "psql",
user = "postgres",
password = "",
database = "lapischan",
},
})
config("production", {
code_cache = "on",
site_name = "Lapis-chan",
port = 80,
secret = secret,
subdomains = subdomains,
body_size = body_size,
text_size = text_size,
lua_path = lua_path,
lua_cpath = lua_cpath,
postgres = {
host = "psql",
user = "postgres",
password = "",
database = "lapischan",
},
})
config("test", {
site_name = "[DEVEL] Lapis-chan",
port = 80,
secret = secret,
subdomains = subdomains,
body_size = body_size,
text_size = text_size,
lua_path = lua_path,
lua_cpath = lua_cpath,
postgres = {
host = "psql",
user = "postgres",
password = "",
database = "lapischan_test",
},
})