Merge pull request #622 from letsencrypt/fix-policy
Add stomped/forgotten PolicyDB config struct
This commit is contained in:
commit
d57759efa0
|
|
@ -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")
|
||||||
|
|
|
||||||
|
|
@ -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.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue