0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-23 22:27:38 -05:00
caddy/config
Matthew Holt 35e309cf87 First use of OncePerServerBlock in a Setup function
startup and shutdown commands should only be executed once per appearance in the Caddyfile (naturally meaning once per server block).

Notice that we support multiple occurrences of startup and shutdown in the same server block by building the callback array incrementally as we parse the Caddyfile, then we append all the callbacks all at once. Quite literally, the OncePerServerBlock function executes only once per server block!
2015-10-15 00:11:26 -06:00
..
parse Epic revert of 0ac8bf5 and adding OncePerServerBlock 2015-10-14 23:45:28 -06:00
setup First use of OncePerServerBlock in a Setup function 2015-10-15 00:11:26 -06:00
config.go Don't share sync.Once with all directives 2015-10-15 00:07:26 -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