Move subscriberAgreementURL config section into WFE section (#1960)
Moves the `subscriberAgreementURL` from a top-level config variable to the WFE section. The top level configuration is still respected until we can change the prod configs.
This commit is contained in:
parent
a2bb1a541d
commit
3e21d0f27c
|
@ -52,7 +52,13 @@ func main() {
|
||||||
rac, sac := setupWFE(c, logger, stats)
|
rac, sac := setupWFE(c, logger, stats)
|
||||||
wfe.RA = rac
|
wfe.RA = rac
|
||||||
wfe.SA = sac
|
wfe.SA = sac
|
||||||
wfe.SubscriberAgreementURL = c.SubscriberAgreementURL
|
|
||||||
|
// TODO: remove this check once the production config uses the SubscriberAgreementURL in the wfe section
|
||||||
|
if c.WFE.SubscriberAgreementURL != "" {
|
||||||
|
wfe.SubscriberAgreementURL = c.WFE.SubscriberAgreementURL
|
||||||
|
} else {
|
||||||
|
wfe.SubscriberAgreementURL = c.SubscriberAgreementURL
|
||||||
|
}
|
||||||
|
|
||||||
wfe.AllowOrigins = c.WFE.AllowOrigins
|
wfe.AllowOrigins = c.WFE.AllowOrigins
|
||||||
|
|
||||||
|
|
|
@ -39,6 +39,8 @@ type Config struct {
|
||||||
|
|
||||||
ShutdownStopTimeout string
|
ShutdownStopTimeout string
|
||||||
ShutdownKillTimeout string
|
ShutdownKillTimeout string
|
||||||
|
|
||||||
|
SubscriberAgreementURL string
|
||||||
}
|
}
|
||||||
|
|
||||||
CA CAConfig
|
CA CAConfig
|
||||||
|
@ -192,6 +194,7 @@ type Config struct {
|
||||||
}
|
}
|
||||||
AllowedSigningAlgos *AllowedSigningAlgos
|
AllowedSigningAlgos *AllowedSigningAlgos
|
||||||
|
|
||||||
|
// TODO: remove after production configs use SubscriberAgreementURL in the wfe section
|
||||||
SubscriberAgreementURL string
|
SubscriberAgreementURL string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
"issuerCacheDuration": "48h",
|
"issuerCacheDuration": "48h",
|
||||||
"shutdownStopTimeout": "10s",
|
"shutdownStopTimeout": "10s",
|
||||||
"shutdownKillTimeout": "1m",
|
"shutdownKillTimeout": "1m",
|
||||||
|
"subscriberAgreementURL": "http://boulder:4000/terms/v1",
|
||||||
"debugAddr": "localhost:8000",
|
"debugAddr": "localhost:8000",
|
||||||
"amqp": {
|
"amqp": {
|
||||||
"server": "amqp://guest:guest@localhost:5673",
|
"server": "amqp://guest:guest@localhost:5673",
|
||||||
|
@ -382,8 +383,6 @@
|
||||||
"maxDBConns": 10
|
"maxDBConns": 10
|
||||||
},
|
},
|
||||||
|
|
||||||
"subscriberAgreementURL": "http://boulder:4000/terms/v1",
|
|
||||||
|
|
||||||
"allowedSigningAlgos": {
|
"allowedSigningAlgos": {
|
||||||
"rsa": true,
|
"rsa": true,
|
||||||
"ecdsanistp256": true,
|
"ecdsanistp256": true,
|
||||||
|
|
Loading…
Reference in New Issue