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
d06c15cae6
Set the request body to a new ReadCloser
2016-08-10 10:36:16 -04:00
59b1e8b0bc
Now logging the request body
...
Logging the request body if the Content-Type is application/json or
application/xml
2016-08-10 10:04:57 -04:00
ce8b1dfe94
Warn upon use of proxy_header
2016-08-08 13:48:13 -06:00
4d76ccb1c4
Rounding the latency in certain scenarios ( #1005 )
...
* Rounding the latency in certain scenarios
* run gofmt
2016-08-08 10:14:53 -06:00
de7bf4f241
Enable downloading of protected content. See issue #979 ( #980 )
...
* Fix for stripping of 'Content-Disposition' and other headers from 'X-Accel-Redirect' redirect scripts.
* Added test case for header manipulation of redirect response.
2016-08-07 23:16:33 -06:00
681c95a749
Add default "Restricted" realm to HTTP Basic auth ( #1007 )
...
* Add default "Restricted" realm to HTTP Basic auth
* Add tests for the Basic auth realm
2016-08-07 07:50:36 -06:00
2019eec5a5
Fix lint warnings; group methods for same type together
2016-08-06 14:46:52 -06:00
ee615371a8
Export staticfiles.Redirect for convenience in preserving query string
2016-08-06 14:40:58 -06:00
8898066455
Merge branch 'master' into proxy/single-webconn
2016-08-05 16:57:54 -07:00
824ec6cb95
Merge branch 'master' into proxy/keepalive-directive
2016-08-05 16:20:37 -07:00
5b5e365295
Instead of treating 0 is a default value, use http.DefaultMaxIdleConnsPerHost
2016-08-05 15:41:32 -07:00
94c63e42d6
proxy: add Host header checking
...
fix issue #993
Signed-off-by: Tw <tw19881113@gmail.com >
2016-08-04 13:07:20 +08:00
6e9439d22e
Proxy: Fix data race in test.
2016-08-02 12:39:15 -07:00
f4cdf53761
Proxy: Fix transport defn; cleanup connection.
2016-08-02 12:31:17 -07:00
89f5b646c3
Merge pull request #978 from krishamoud/master
...
added ip_hash load balancing
2016-08-02 11:25:52 -06:00
d534a2139f
Proxy: When connecting to websocket backend, reuse the connection isntead of starting a new one.
2016-08-01 19:11:31 -07:00
c4e65df262
Proxy: Add a failing test which replicates #763
...
2 websocket connections are made instead of one
2016-08-01 19:09:02 -07:00
88d3dcae42
added ip_hash load balancing
...
updated tests
fixed comment format
fixed formatting, minor logic fix
added newline to EOF
updated logic, fixed tests
added comment
updated formatting
updated test output
fixed typo
2016-08-01 18:50:53 -07:00
db4cd8ee2d
Proxy: Add keepalive directive to proxy to set MaxIdleConnsPerHost on transport. Fixes #938
2016-08-01 15:54:07 -07:00
da5b3cfc50
Merge pull request #976 from wjkohnen/h2
...
Re-enable HTTP/2 for Go 1.7.
2016-08-01 15:06:44 -06:00
b64894c31e
redir: loading block arguments before parsing matcher
...
fix issue #977
Signed-off-by: Tw <tw19881113@gmail.com >
2016-08-01 14:38:18 +08:00
d88dd74dec
Re-enable HTTP/2 for Go 1.7.
...
* Since Go 1.7 HTTP/2 support is enabled only if TLSConfig.NextProtos
includes the string "h2".
* see mholt/caddy#975
2016-07-30 18:18:53 +00:00
c8daaba4be
Update link to SA 1.1.1 (and other minor tweaks)
2016-07-28 11:11:14 -06:00
1dd413bd69
Change position of locale directive
...
First, great job on the 0.9 release! It seems caddy's path lead into a bright future. Thanks also for including the locale plugin.
Trying it, I've figured out, that there might be a problem with the order of the directives. In the typical use case, the result of the locale detection might be used in the `rewrite` and `log` plugin. If I'm not mistaken, it makes sense to put the `locale` directive before those.
2016-07-24 11:55:25 +02:00
b2aed643f4
Register ratelimit
2016-07-23 10:50:07 +08:00
62e8c4b76b
Use authentification credentials from proxy's configuration as a default. ( #951 )
2016-07-22 11:33:50 -06:00
6490ff6224
Adjust proxy headers properly ( fixes #916 )
2016-07-21 18:18:01 -06:00
57710e8b0d
Revert "Merge pull request #931 from pedronasser/master"
...
This reverts commit 9ea059195198c04403bfb4c74e9282eb87467b36, reversing
changes made to 2125ae5f99989949f917eed8a1d961b76a23dbba.
2016-07-21 13:31:43 -06:00