diff --git a/config.moon b/config.moon index 46d0076..5ee09a2 100644 --- a/config.moon +++ b/config.moon @@ -15,11 +15,5 @@ config "docker", -> postgres -> backend "pgmoon" - if os.getenv "DB_USER" - host assert os.getenv "POSTGRESQL_PORT_5432_TCP_ADDR" - port assert os.getenv "POSTGRESQL_PORT_5432_TCP_PORT" - user assert os.getenv "DB_USER" - password assert os.getenv "DB_PASS" - database assert os.getenv "DB_NAME" - else - postgresql_url assert os.getenv "DATABASE_URL" + ngx.log ngx.NOTICE, "Using DATABASE_URL #{os.getenv "DATABASE_URL"}" + postgresql_url os.getenv "DATABASE_URL"