simplex/config.moon

20 lines
446 B
Plaintext
Raw Normal View History

2018-04-23 12:00:42 +00:00
-- 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"