some cfg tweaks

This commit is contained in:
Lera Elvoé 2025-05-19 06:43:19 +03:00
parent 4cb390348c
commit 5ec458702a
Signed by: yagich
SSH Key Fingerprint: SHA256:6xjGb6uA7lAVcULa7byPEN//rQ0wPoG+UzYVMfZnbvc
3 changed files with 17 additions and 1 deletions

1
.gitignore vendored
View File

@ -4,3 +4,4 @@ db.*.sqlite
.vscode/
.local/
static/
secrets.lua

View File

@ -1,6 +1,7 @@
local config = require("lapis.config")
local secrets = require("secrets")
config("development", {
config({"development", "production"}, {
server = "nginx",
code_cache = "off",
num_workers = "1",
@ -10,3 +11,14 @@ config("development", {
secret = "SUPER SECRET",
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
View File

@ -0,0 +1,3 @@
return {
key = PROD_SECRET_KEY_HERE,
}