We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3723e89 commit 16fe83cCopy full SHA for 16fe83c
modules/caddyhttp/app.go
@@ -170,13 +170,15 @@ func (App) CaddyModule() caddy.ModuleInfo {
170
// Provision sets up the app.
171
func (app *App) Provision(ctx caddy.Context) error {
172
// store some references
173
+ app.logger = ctx.Logger()
174
+ app.ctx = ctx
175
+
176
+ // provision TLS and events apps
177
tlsAppIface, err := ctx.App("tls")
178
if err != nil {
179
return fmt.Errorf("getting tls app: %v", err)
180
}
181
app.tlsApp = tlsAppIface.(*caddytls.TLS)
- app.ctx = ctx
- app.logger = ctx.Logger()
182
183
eventsAppIface, err := ctx.App("events")
184
0 commit comments