0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-23 22:27:38 -05:00
caddy/config/setup
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
..
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 Epic revert of 0ac8bf5 and adding OncePerServerBlock 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 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 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