2018-09-09 23:29:56 +00:00
|
|
|
config = require "lapis.config"
|
|
|
|
|
|
|
|
postgres_password = os.getenv "POSTGRES_PASSWORD"
|
2018-09-10 14:12:47 +00:00
|
|
|
secret_value = os.getenv "SESSION_SECRET"
|
2018-09-09 23:29:56 +00:00
|
|
|
|
|
|
|
config "development", ->
|
|
|
|
postgres ->
|
|
|
|
host "dt-db"
|
|
|
|
user "postgres"
|
|
|
|
database "postgres"
|
|
|
|
password postgres_password
|
|
|
|
num_workers 2
|
|
|
|
code_cache "on"
|
2018-09-10 14:12:47 +00:00
|
|
|
secret secret_value or "insecure"
|