caddy/config/setup
Matthew Holt fc413e2403 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-19 07:41:58 -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 test failure on non-Windows OS. 2015-10-13 20:16:43 -04: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 Don't share sync.Once with all directives 2015-10-19 07:41:58 -06:00
errors.go Fix test failures on Windows. 2015-10-13 19:49:53 -04: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-19 07:41:58 -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 Fix test failures on Windows. 2015-10-13 19:49:53 -04:00
markdown_test.go Re-enable test 2015-10-13 20:23:05 -04: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 Use null byte in filename to simulate 'unable to access' on both windows and linux 2015-10-14 09:35:50 +03:00
startupshutdown.go First use of OncePerServerBlock in a Setup function 2015-10-19 07:41:58 -06: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 websocket refactored to use gorilla 2015-10-12 19:59:11 -07:00
websocket_test.go Add tests for websocket configuration 2015-10-17 12:09:55 -06:00