caddy/config/setup
Matthew Holt 0c07f7adcc 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-14 23:45:28 -06:00
..
testdata Added test on markdown static files generation 2015-07-29 16:21:35 +02:00
basicauth.go basicauth: htpasswd path now relative to site root 2015-09-05 16:04:30 -06:00
basicauth_test.go Fix format verbs for funcs 2015-09-10 19:59:19 -07:00
bindhost.go Rename bindaddr to just bind 2015-05-04 22:58:08 -07:00
browse.go allow consecutive spaces for browse 2015-10-07 19:16:49 +03:00
controller.go Epic revert of 0ac8bf5 and adding OncePerServerBlock 2015-10-14 23:45:28 -06:00
errors.go errors: New 'visible' mode to write stack trace to response 2015-09-24 16:21:28 -06:00
errors_test.go errors: New 'visible' mode to write stack trace to response 2015-09-24 16:21:28 -06:00
ext.go Major refactoring of middleware and parser in progress 2015-05-04 11:04:37 -06:00
ext_test.go setup: export functions and variables for external packages. 2015-06-20 14:59:33 +01:00
fastcgi.go Epic revert of 0ac8bf5 and adding OncePerServerBlock 2015-10-14 23:45:28 -06:00
fastcgi_test.go removed redundant comment lines 2015-08-30 18:57:20 +05:30
gzip.go Fix vet warnings about unkeyed fields 2015-09-10 19:57:23 -07:00
gzip_test.go Gzip: Fix wildcard extension bug. 2015-07-06 06:36:48 +01:00
headers.go headers: Replaced usage of Url to Path in setup 2015-05-09 21:57:55 +02:00
headers_test.go setup: export functions and variables for external packages. 2015-06-20 14:59:33 +01:00
internal.go rename middleware's name from internal to inner 2015-06-10 15:48:41 +08:00
internal_test.go setup: export functions and variables for external packages. 2015-06-20 14:59:33 +01:00
log.go Added LogRoller parser and entity. 2015-09-02 15:13:31 +02:00
log_test.go Use localtime for the log roller timestamp 2015-09-04 19:18:01 +02:00
markdown.go Address various lint and gocyclo warnings. Fixes #253 2015-10-11 16:28:02 -04:00
markdown_test.go Fix formatting directives in tests 2015-09-04 08:34:58 -07:00
mime.go New core middleware, MIME. 2015-09-30 18:37:10 +01:00
mime_test.go New core middleware, MIME. 2015-09-30 18:37:10 +01:00
proxy.go Address various lint and gocyclo warnings. Fixes #253 2015-10-11 16:28:02 -04:00
redir.go redir: Include scheme in redirect rules 2015-09-30 08:38:31 -06:00
rewrite.go Rewrite: Support for Regular Expressions. 2015-05-16 13:03:48 +01:00
rewrite_test.go Fix vet warnings about unkeyed fields 2015-09-10 19:57:23 -07:00
roller.go Use localtime for the log roller timestamp 2015-09-04 19:18:01 +02:00
root.go Major refactoring of middleware and parser in progress 2015-05-04 11:04:37 -06:00
root_test.go Fail the test if the configuration fails. 2015-10-10 04:15:25 +03:00
startupshutdown.go Address various lint and gocyclo warnings. Fixes #253 2015-10-11 16:28:02 -04:00
templates.go export of variables undone 2015-06-27 03:49:44 +05:30
templates_test.go Complete test coverage for config/setup/templates.go 2015-06-28 07:03:42 +05:30
tls.go core: Disable TLS for http sites (again) 2015-08-05 11:33:51 -06:00
tls_test.go setup: export functions and variables for external packages. 2015-06-20 14:59:33 +01:00
websocket.go test for webSocketParse function in config/setup 2015-06-24 07:05:53 +05:30
websocket_test.go test for webSocketParse function in config/setup 2015-06-24 07:05:53 +05:30