diff src/luan/host/init.luan @ 1626:cf9dfead83a3

use Config.postgres
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 07 Dec 2021 18:30:02 -0700
parents f67f972bd648
children 07be5015159d
line wrap: on
line diff
--- a/src/luan/host/init.luan	Sun Sep 05 12:32:27 2021 -0600
+++ b/src/luan/host/init.luan	Tue Dec 07 18:30:02 2021 -0700
@@ -73,10 +73,12 @@
 local Logging = require "luan:logging/Logging.luan"
 local logger = Logging.logger "init"
 
-local pg = Package.load("file:postgres.luan")
+local Config = require "file:Config.luan"
+Config.password = nil  -- security
+local pg = Config.postgres
 
 function Hosted.postgres_spec()
-	if pg == false then
+	if pg == nil then
 		return nil
 	end
 	local spec = {