be1c57acfe
1136 fix
...
logic change
2016-09-28 04:09:46 -07:00
4adbcd2565
Merge pull request #1125 from hlidotbe/master
...
Add expires directive
2016-09-24 21:11:30 -06:00
d01bcd591c
Merge pull request #1112 from tw4452852/proxy_header
...
proxy: don't append predefined headers
2016-09-24 21:02:19 -06:00
c9b022b5e0
proxy: don't append some predefined headers
...
fix issue #1086
Signed-off-by: Tw <tw19881113@gmail.com >
2016-09-25 09:24:27 +00:00
4670d13c8c
proxy: fix checking error in TestDownstreamHeadersUpdate and TestUpstreamHeadersUpdate
...
Signed-off-by: Tw <tw19881113@gmail.com >
2016-09-24 19:28:42 +00:00
9077cce126
Add tests for case insensitivity of keys and saving contexts
2016-09-24 13:24:33 -06:00
76d9d695be
Remove use of proxy_header in test
2016-09-24 12:27:16 -06:00
a4d70262aa
Use strings.Contains instead of IndexOf for readability
2016-09-24 12:09:28 -06:00
79f2deee42
Add expires directive
2016-09-24 08:10:32 +02:00
bac54de9eb
Fastcgi persistent fix ( #1129 )
...
* Support for configurable connection pool.
* ensure positive integer pool size config
2016-09-23 23:29:23 -06:00
bbf954cbf2
Fix case sensitivity in site addresses
2016-09-20 22:44:05 -06:00
fcad474064
Move prometheus directive higher in list ( closes #1119 )
2016-09-20 14:29:32 -06:00
4449d3dcd9
Add the multipass plugin to the directives ( #1120 )
...
* Add the multipass plugin to the directives
* Fix gofmt
2016-09-20 09:06:28 -06:00
bedad34b25
Clean up some significant portions of the TLS management code
2016-09-14 22:30:49 -06:00
40a3a6b24f
Add awslambda to plugin.go
2016-09-10 07:52:04 -07:00
09a1f02971
persistent fastcgi connections ( #1087 )
...
* keep fastcgi connection open
* poor mans serialisation to make up for the lack of demuxing
* pointing includes to echse's repo
* Revert "pointing includes to echse's repo"
This reverts commit 281daad8d437ba88fadd65fae5af2da99d449bea.
* switch for persistent fcgi connections on/off added
* fixing ineffectual assignments
* camel case instead of _
* only activate persistent sockets on windows (and some naming conventions/cleanup)
* gitfm import sorting
* Revert "fixing ineffectual assignments"
This reverts commit 79760344e7b1231e59a2867246e7689b05e92e18.
# Conflicts:
# caddyhttp/staticfiles/fileserver.go
* added another mutex and deleting map entries. thx to mholts QA comments!
* thinking about it, this RW lock was not a good idea here
* thread safety
* I keep learning about mutexs in go
* some cosmetics
2016-09-10 06:47:47 -06:00
5f135a27d5
Eliminate ineffectual assignments
...
Most of these were fixed by handling errors that were previously
unhandled (oops).
2016-09-05 10:30:46 -06:00
45a3d0b526
Fix misspellings
2016-09-05 10:20:34 -06:00
14a6e4b4ed
More minor text fixes
2016-08-30 13:37:35 -06:00
1991083322
Fix tests to not make long unix domain socketpaths
...
Some tests were running into this issue:
https://github.com/golang/go/issues/6895
Putting the sockets into temp dirs fixes the problem.
2016-08-29 18:09:46 -07:00
7ba804353c
Use naoina/toml instead of BurntSushi/toml
2016-08-29 17:55:44 -07:00
20ee457cae
Add 'status' middleware instead of 'status' directive for 'rewrite' middleware
2016-08-29 17:17:23 +03:00
191ec27c26
Clarify godoc for HTTP handler signature
2016-08-25 17:13:49 -06:00
17709a7d3f
Defer loading directives until needed (fix for previous commit)
...
This change is still experimental.
2016-08-25 00:15:18 -06:00
5a691fbaf5
httpserver: Added function to register directive at runtime (dev only)
...
This function should not be used outside of development. It destroys the
absolute ordering and guarantees of correctness. Multiple uses of it
may work fine, but maybe not if they overlap, causing non-deterministic
builds which is bad. However, this can be convenient when developing
a plugin by calling it from an init() function, since you don't have
to modify the Caddy source code just to try your plugin.
2016-08-24 23:12:41 -06:00
e7af23e1e6
log: add multiple log entry test
...
Signed-off-by: Tw <tw19881113@gmail.com >
2016-08-25 11:21:08 +08:00
5e0f4083c4
log: support multiple log entries under one path scope
...
fix issue #1044
Signed-off-by: Tw <tw19881113@gmail.com >
2016-08-24 12:48:51 +08:00
3dc98c8ce3
Keep quic protocol headers only between one hop
...
Removing quic protocol headers from being persisted during proxy requests.
Not removing them could lead to the client attempting to connect to the wrong port.
This makes the quic headers consistent with other protocol headers.
2016-08-23 22:05:56 +00:00
151d0baa94
Minor text fixes ;)
2016-08-23 15:47:23 -06:00
1dfe1e5ada
Add plugin capabilities for tls storage.
...
To use a plugged in storage, specify "storage storage_name" in the tls block of the Caddyfile, by default, file storage will be used
2016-08-23 23:00:20 +02:00
2ef8905966
Proxy: Instead of setting DisableKeepAlives, set MaxIdleConnsPerHost to -1 to prevent net/http from pooling the connections. DisableKeepAlives causes net/http to send a Connection: Closed header which is bad. Fixes #1056
2016-08-22 18:00:37 -07:00
590862a962
replacer: capture request body normally
...
fix issue #1015
Signed-off-by: Tw <tw19881113@gmail.com >
2016-08-23 08:20:49 +08:00
40c09d6789
replacer: code refactor
...
Signed-off-by: Tw <tw19881113@gmail.com >
2016-08-23 08:20:49 +08:00
bba1059ef9
log: add log request body test
...
Signed-off-by: Tw <tw19881113@gmail.com >
2016-08-23 08:20:49 +08:00
fdc62d015f
log: Create log file directory before creating log file
2016-08-18 07:35:55 -06:00
f372f5fce7
Fix for invalid environment variable names used on windows that start with an equals symbol. Even though this contradicts the Microsoft docs.
2016-08-15 20:42:00 +01:00
454b1e3939
Honor bind directive for ACME challenges
...
Fixes https://forum.caddyserver.com/t/basic-caddy-installation-failing-on-automatic-https/472?u=matt
2016-08-15 12:08:51 -06:00
45ac11088e
Added support for environment variables to 'templates' module. ( #1035 )
...
* * Added support for environment variables to 'templates' module.
* Fixed flaw in test caused by environment variable ordering during testing on CI.
* Updated some local variables to camel-case.
* Reverted changes to replacer as environment variables are processed elsewhere.
* Removed PrintEnv functionality in favour of documenting using template range.
2016-08-15 11:15:58 -06:00
b830667a25
Fix error which lead to skipping tests in 'errors.TestErrorsParse'
2016-08-15 16:44:34 +03:00
441a8f5eff
Check for duplicate status code entries in 'errors' directive
2016-08-12 16:47:00 +03:00
4f6500c95b
Merge pull request #1028 from evvvvr/wildcard-error-page-752
...
Add support for default (wildcard) error page
2016-08-11 23:33:44 -06:00
ac0dd303be
Merge branch 'master' into log-request-body
2016-08-11 17:36:09 -06:00
676202a31e
Fixed styling and byte count
2016-08-11 19:08:49 -04:00
c8a99d2f81
Don't use X-Forwarded-For for {remote} placeholder ( closes #1025 )
2016-08-11 16:54:17 -06:00
8e8e2f596d
Merge branch 'master' into log-request-body
2016-08-11 18:08:19 -04:00
f7003bee3f
Add support for default (wildcard) error page
2016-08-11 15:51:15 +03:00
532ab661c7
Fully read and close the request body
2016-08-11 07:03:14 -04:00
68be4a9161
Don't prompt for email when user is not there to provide one
...
Also don't bother showing stdout output in same situation
2016-08-10 23:46:04 -06:00
d56ac28bec
Using a LimitReader and fixed test and log format.
2016-08-10 22:43:26 -04:00
3fd8218f67
refactor and added test
2016-08-10 11:04:37 -04:00