Tw
f58653bc13
internal: inherit original ResponseWriter's interfaces
...
Signed-off-by: Tw <tw19881113@gmail.com>
2017-05-02 10:53:16 +08:00
Toby Allen
e0ed709397
rewrite: Raise error if rewrite path does not begin with / #1610 ( #1629 )
...
* Raise syntax error if no '/' prefix to rewrite. Added Tests
* fix case where to keyword is used.
* Fixed spelling issue
* Changes to use Errf rather than new Err function
* Remove new RewritePathErr Function
2017-05-01 13:45:40 -06:00
Matt Holt
b3dd604904
Merge pull request #1637 from devangels/bugfix1628
...
Bugfix for issue #1628 where `Caddyfile` is not being hidden correctly
2017-05-01 08:47:44 -06:00
Simon Lightfoot
8f09ed8f0d
Bugfix for issue #1628 where Caddyfile
is not being hidden correctly on windows.
...
Added test case to check if Caddyfile is added to HiddenFiles correctly.
2017-05-01 14:21:49 +01:00
Matt Holt
49d79d7ebc
Merge pull request #1598 from tw4452852/1589
...
proxy: recognize client's cancellation
2017-04-30 08:19:03 -06:00
Matt Holt
4c034f6ad1
Merge pull request #1613 from tw4452852/addlink
...
Context: add Push action
2017-04-30 08:09:53 -06:00
Matt Holt
503c6b392c
Merge pull request #1635 from aaronellington/lint-fixes
...
lint fixes
2017-04-29 23:49:59 -06:00
Tw
0146bb4e49
proxy: recognize client's cancellation
...
fix issue #1589
Signed-off-by: Tw <tw19881113@gmail.com>
2017-04-30 10:14:19 +08:00
Aaron Ellington
7ee4ea244f
lint fixes
2017-04-29 20:53:58 -04:00
Matthew Holt
705cb98865
Remove TODO because Let's Encrypt has fixed issuance/OCSP ordering
2017-04-29 16:49:07 -06:00
Matthew Holt
ff45801cda
Minor improvements to PR template
2017-04-29 16:49:07 -06:00
Tw
761a32a080
context: add Push action
...
Signed-off-by: Tw <tw19881113@gmail.com>
2017-04-27 09:51:33 +08:00
AJ ONeal
aa7ecb02af
update macOS launchd example ( #1600 )
...
* update to match same paths as systemd
* update to match new launchd plist
* generated from scratch with LaunchControl, flawless
Had some issues with the previous go and found LaunchControl which made it easy to generate a perfectly correct launchd conf
* Update README.md
2017-04-26 13:44:32 -06:00
Matthew Holt
5d7db89a90
httpserver: Proper HTTP->HTTPS for wildcard sites ( fixes #1625 )
2017-04-26 12:32:15 -06:00
Francis Lavoie
1bae36ef29
Fix 1592: Allow insecure CA URL on internal networks ( #1607 )
...
* Strip brackets in IsInternal if no port, allow loopback for CA URLs
* Fix a mistake
* Improve the trim
* Fix comment
2017-04-26 12:00:49 -06:00
emersion
52fd4f89bf
dist/init: Better way to get systemd version ( #1612 )
2017-04-26 10:45:57 -06:00
Tw
cad89a07e0
gzip: pool gzip.Writer to reduce allocation ( #1618 )
...
* gzip: add benchmark
Signed-off-by: Tw <tw19881113@gmail.com>
* gzip: pool gzip.Writer to reduce allocation
Signed-off-by: Tw <tw19881113@gmail.com>
2017-04-26 00:23:50 -06:00
Matthew Holt
b18527285d
Optimizations should be benchmarked or profiled.
2017-04-25 11:05:20 -06:00
Matthew Holt
1deb99c75c
Update contributing guide, make PR template, move github assets
2017-04-25 11:01:22 -06:00
Matthew Holt
0775f9123c
Change forum links to new domain
2017-04-23 12:51:08 -06:00
Matthew Holt
5fbd63e35d
Update README to match new site, branding, and latest version
2017-04-22 17:32:42 -06:00
Matthew Holt
f09fff3d8b
Remove ineffectual assignment created by reverting 344017d
( #1584 )
2017-04-21 22:26:38 -06:00
Matthew Holt
0a798aafac
mitm, templates, context: Pool buffers to reduce allocations
...
Also disable some tests on context.Hostname because they're not portable
2017-04-21 19:54:25 -06:00
Matthew Holt
f8614b877d
Revert 344017dc21
( #1584 )
2017-04-21 13:02:15 -06:00
Matt Holt
182e1b4fb2
Merge pull request #1605 from tw4452852/1604
...
proxy: take original URL path into account when remove prefix ("without")
2017-04-21 12:07:14 -06:00
Tw
c684de9a88
proxy: take original URL path into account when remove prefix
...
fix issue #1604
Signed-off-by: Tw <tw19881113@gmail.com>
2017-04-21 19:35:32 +08:00
Matthew Holt
27785f7993
Update readme and changelog for v0.10
2017-04-20 11:36:40 -06:00
Matt Holt
ad4191a07e
Merge pull request #1596 from mholt/closinglogs
...
httpserver: Don't close stdout or stderr when closing logs (fix #1471 )
2017-04-20 05:39:42 -06:00
Jonas Östanbäck
91da965a39
Disable warning for insecure CA if located on private network. ( #1599 )
...
* Disable warning for insecure CA if located on private network.
* Add IsPrivateNetwork function
* Add tests
Signed-off-by: Jonas Östanbäck <jonas.ostanback@gmail.com>
* Add more testcases
Signed-off-by: Jonas Östanbäck <jonas.ostanback@gmail.com>
* Rename IsPrivateNetwork -> IsInternal
Signed-off-by: Jonas Östanbäck <jonas.ostanback@gmail.com>
2017-04-20 05:38:54 -06:00
Matt Holt
b37da03989
Merge pull request #1595 from jannickfahlbusch/feature/hostnameInTemplateActions
...
templates: Add Hostname template action
2017-04-19 16:20:16 -06:00
Jannick Fahlbusch
92af3ee4d8
Add hostname template action
...
This adds the ability to display the remote hostname
of the visitors IP with template actions.
2017-04-19 09:18:12 +02:00
Matthew Holt
1e8ab1cadf
httpserver: Don't close stdout or stderr when closing logs ( fix #1471 )
2017-04-18 16:01:11 -06:00
Matt Holt
729e4f0239
Merge pull request #1594 from tw4452852/templateFuncsTest
...
template: add test for custom function
2017-04-18 09:23:06 -06:00
Tw
790c842fad
template: add test for custom function
...
Signed-off-by: Tw <tw19881113@gmail.com>
2017-04-18 22:49:20 +08:00
Matt Holt
f28a159b72
Merge pull request #1591 from tw4452852/template_funcs
...
template: support custom functions
2017-04-18 08:14:00 -06:00
Tw
f77a7a805a
template: support custom functions
...
Signed-off-by: Tw <tw19881113@gmail.com>
2017-04-18 16:17:30 +08:00
Matt Holt
236341f78b
Merge pull request #1584 from tw4452852/encoded_path
...
proxy: use untouched URL for concatenating
2017-04-17 23:39:14 -06:00
Matthew Holt
ac3bbdbd3f
tls: Arrange cipher suites in map in preference order for convenience
...
Maps are NOT ordered at runtime but I still want the cipher suites
listed in order of preference in the source file for convenience.
2017-04-17 22:11:05 -06:00
Matthew Holt
ce2a9cd8f9
push: Reorder before proxy; and allow zero arguments (cf. #1573 )
2017-04-17 22:06:17 -06:00
Matthew Holt
4462e3978b
httpserver: max_certs now forces On-Demand TLS even if name is known
...
Original feature request in forum:
https://forum.caddyserver.com/t/caddy-with-specific-hosts-but-on-demand-tls/1704?u=matt
Before, Caddy obtained certificates for every name it could at startup.
And it would only obtain certificates during the handshake for sites
defined with a hostname that didn't qualify at startup (like
"*.example.com" or ":443"). This made sense for most situations, and
helped ensure that certificates were obtained as early and reliably as
possible.
With this change, Caddy will NOT obtain certificates for hostnames it
knows at startup (even if they qualify) if OnDemand is enabled.
But I think this change generalizes well, because a user who specifies
max_certs is deliberately turning on On-Demand TLS, fully aware of
the consequences. It seems dubious to ignore that config when the user
deliberately put it there. We'll see how this goes.
2017-04-17 19:53:15 -06:00
Tw
344017dc21
proxy: use untouched URL for concatenating
...
Signed-off-by: Tw <tw19881113@gmail.com>
2017-04-18 09:07:38 +08:00
elcore
a56a833423
caddyhttp: New index directive for alternate index file names ( #1567 )
...
* caddyhttp: Allow to alternate Index
* Move Index directive
* Fix misspelling outside this PR
2017-04-17 11:02:44 -06:00
Matt Holt
6b66b19deb
Merge pull request #1583 from tw4452852/1529
...
log: only allow new roller related options in a block
2017-04-17 10:01:15 -06:00
Francis Lavoie
33257de2e8
proxy: Fix #1574 ; health check now respects hostname when upstream Host header is configured ( #1577 )
...
* Implement adding Host header to health check
* Fix type problems
* Fix duplicate function, Replace args
* Add debugging
* Add debugging
* Add debugging
* Add debugging
* Attempt to set req.Host instead of the header
* Clean up debugging
* Fix missing newline
* Fix spelling
* Add test, refactoring
* Fix with gofmt
* Add error check on NewRequest
2017-04-17 09:58:47 -06:00
Tw
702dec0647
log: only allow new roller related options in a block
...
fix issue #1529
Signed-off-by: Tw <tw19881113@gmail.com>
2017-04-17 16:55:45 +08:00
Matthew Holt
8d1da68b47
D'oh, commit all changes to file
2017-04-15 22:58:34 -06:00
Matthew Holt
7a7e3d160b
context: Use crypto/rand in case method used for crypto purposes
2017-04-15 22:32:41 -06:00
Matthew Holt
5a1243ff42
context: Fix computation for random length of random string
2017-04-15 16:48:44 -06:00
Matthew Holt
edf9cd34cc
context: RandomString action produces a random string of random length
2017-04-15 16:38:45 -06:00
Matthew Holt
f415ea263e
browse: Use more standard sort icon over icons
2017-04-14 16:11:26 -06:00