Merge pull request #622 from letsencrypt/fix-policy

Add stomped/forgotten PolicyDB config struct
This commit is contained in:
Roland Shoemaker 2015-08-14 12:11:25 -07:00
commit d57759efa0
2 changed files with 6 additions and 1 deletions

View File

@ -159,7 +159,7 @@ func main() {
blog.SetAuditLogger(auditlogger) blog.SetAuditLogger(auditlogger)
// Configure DB // Configure DB
dbMap, err := sa.NewDbMap(c.Common.PolicyDB.Driver, c.Common.PolicyDB.Name) dbMap, err := sa.NewDbMap(c.PA.DBDriver, c.PA.DBConnect)
cmd.FailOnError(err, "Could not connect to database") cmd.FailOnError(err, "Could not connect to database")
dbMap.AddTableWithName(core.ExternalCert{}, "externalCerts").SetKeys(false, "SHA1") dbMap.AddTableWithName(core.ExternalCert{}, "externalCerts").SetKeys(false, "SHA1")

View File

@ -170,6 +170,11 @@ type Config struct {
StatsdRate float32 StatsdRate float32
} }
PA struct {
DBDriver string
DBConnect string
}
Common struct { Common struct {
BaseURL string BaseURL string
// Path to a PEM-encoded copy of the issuer certificate. // Path to a PEM-encoded copy of the issuer certificate.