some cfg tweaks
This commit is contained in:
parent
4cb390348c
commit
5ec458702a
1
.gitignore
vendored
1
.gitignore
vendored
@ -4,3 +4,4 @@ db.*.sqlite
|
|||||||
.vscode/
|
.vscode/
|
||||||
.local/
|
.local/
|
||||||
static/
|
static/
|
||||||
|
secrets.lua
|
||||||
|
14
config.lua
14
config.lua
@ -1,6 +1,7 @@
|
|||||||
local config = require("lapis.config")
|
local config = require("lapis.config")
|
||||||
|
local secrets = require("secrets")
|
||||||
|
|
||||||
config("development", {
|
config({"development", "production"}, {
|
||||||
server = "nginx",
|
server = "nginx",
|
||||||
code_cache = "off",
|
code_cache = "off",
|
||||||
num_workers = "1",
|
num_workers = "1",
|
||||||
@ -10,3 +11,14 @@ config("development", {
|
|||||||
secret = "SUPER SECRET",
|
secret = "SUPER SECRET",
|
||||||
session_name = "porom_session",
|
session_name = "porom_session",
|
||||||
})
|
})
|
||||||
|
|
||||||
|
config("production", {
|
||||||
|
code_cache = "on",
|
||||||
|
logging = {
|
||||||
|
queries = false,
|
||||||
|
},
|
||||||
|
secret = secrets.key,
|
||||||
|
sqlite = {
|
||||||
|
database = "db.prod.sqlite"
|
||||||
|
},
|
||||||
|
})
|
||||||
|
3
secrets.lua.example
Normal file
3
secrets.lua.example
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
return {
|
||||||
|
key = PROD_SECRET_KEY_HERE,
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user