0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-23 22:27:38 -05:00
caddy/config
Matthew Holt f3596f734d Epic revert of 0ac8bf5 and adding OncePerServerBlock
Turns out having each server block share a single server.Config during initialization when the Setup functions are being called was a bad idea. Sure, startup and shutdown functions were only executed once, but they had no idea what their hostname or port was. So here we revert to the old way of doing things where Setup may be called multiple times per server block (once per host associated with the block, to be precise), but the Setup functions now know their host and port since the config belongs to exactly one virtualHost. To have something happen just once per server block, use OncePerServerBlock, a new function available on each Controller.
2015-10-19 07:41:58 -06:00
..
parse Epic revert of 0ac8bf5 and adding OncePerServerBlock 2015-10-19 07:41:58 -06:00
setup Epic revert of 0ac8bf5 and adding OncePerServerBlock 2015-10-19 07:41:58 -06:00
config.go Epic revert of 0ac8bf5 and adding OncePerServerBlock 2015-10-19 07:41:58 -06:00
config_test.go core: Bind all listeners to wildcard host by default (closes #208) 2015-08-05 07:37:51 -06:00
directives.go Address various lint and gocyclo warnings. Fixes #253 2015-10-11 16:28:02 -04:00