20 lines
446 B
Plaintext
20 lines
446 B
Plaintext
|
-- sql_password: '$POSTGRES_PASSWORD'
|
||
|
-- session_secret: '$(cat /dev/urandom | head -c 12 | base64)'
|
||
|
-- _domain: '$DOMAIN_NAME'
|
||
|
-- _port: '$PORT'
|
||
|
|
||
|
config = require "lapis.config"
|
||
|
import sql_password, session_secret, _domain, _port from require "secret"
|
||
|
|
||
|
config "production", ->
|
||
|
postgres ->
|
||
|
host "127.0.0.1"
|
||
|
user "simplex"
|
||
|
password sql_password
|
||
|
database "simplex"
|
||
|
domain _domain
|
||
|
port _port
|
||
|
|
||
|
num_workers 4
|
||
|
code_cache "on"
|