panel/config.moon

31 lines
564 B
Plaintext
Raw Normal View History

2015-01-05 21:41:19 +00:00
config = require "lapis.config"
2015-01-10 03:08:54 +00:00
ffi = actualrequire("ffi")
ffi.cdef [[
char *getenv(const char *name)
]]
getenv = (name) ->
ffi.string ffi.C.getenv name
2015-01-05 21:41:19 +00:00
config "development", ->
port 8080
postgres ->
backend "pgmoon"
host "127.0.0.1"
user "lapis"
password "lapis"
database "panel"
2015-01-10 00:53:18 +00:00
config "docker", ->
2015-01-10 02:08:18 +00:00
port 5000
2015-01-09 02:44:33 +00:00
postgres ->
backend "pgmoon"
2015-01-10 03:08:54 +00:00
port getenv "POSTGRESQL_PORT_5432_TCP_PORT"
host getenv "POSTGRESQL_PORT_5432_TCP_ADDR"
user getenv "DB_USER"
password getenv "DB_PASS"
database getenv "DB_NAME"