Matthew Holt
94e3e7e5eb
browse: New default template
2015-12-31 00:23:10 -07:00
Matthew Holt
b0397df719
Save obtained certs even if there were failures
2015-12-11 15:42:22 -07:00
Matt Holt
d93fe53e84
Merge pull request #362 from jungle-boogie/patch-3
...
wrap lines to 80 characters
2015-11-24 13:42:21 -07:00
Matt Holt
0a40970dea
Merge pull request #361 from jungle-boogie/patch-2
...
more copy edits
2015-11-24 13:34:39 -07:00
jungle-boogie
6478eee338
removed stray ) and spaces.
2015-11-24 11:16:05 -08:00
jungle-boogie
a60c739797
wrap lines to 80 characters
...
also linked to bug reporting article.
2015-11-24 11:09:35 -08:00
jungle-boogie
19ca7d812e
more copy edits
...
add links to inspired by projects and updated language with golang.
2015-11-24 11:04:15 -08:00
Matt Holt
bc37cf0d1c
Merge pull request #360 from jungle-boogie/patch-1
...
copy edit to wrap around 80 chars
2015-11-24 11:24:24 -07:00
jungle-boogie
78b95deb55
copy edit to wrap around 80 chars
...
not all lines wrap at 80 characters but now most do.
2015-11-24 10:17:34 -08:00
Matt Holt
b787569820
Merge pull request #359 from abiosoft/master
...
rewrite: Use middleware.Replacer for simple rule
2015-11-24 10:17:02 -07:00
Abiola Ibrahim
016344bae7
Rewrite: Use middleware.Replacer for simple rule.
2015-11-24 12:20:39 +01:00
Matt Holt
0b51369932
Merge pull request #356 from Luit/master
...
proxy: Two small websocket fixes
2015-11-21 13:37:59 -07:00
Luit van Drongelen
1fb66d534a
Close proxy's backend request earlier when re-connecting for websocket
2015-11-21 20:03:46 +01:00
Luit van Drongelen
f0b1edaf8c
Fix proxy for websocket with altered Host header
2015-11-21 20:00:44 +01:00
Matt Holt
4dbb4274d9
Merge pull request #354 from pyed/patch-3
...
browse: allow consecutive spaces in the header
2015-11-20 23:48:56 -07:00
pyed
9886e89e42
allow consecutive spaces in the header
2015-11-21 05:49:27 +03:00
Matt Holt
3e402e0692
Merge pull request #349 from carlisia/cc-lint-fixes
...
Add a few super minor lint fixes
2015-11-19 08:17:41 -07:00
Carlisia Campos
0a1721d5b2
Add a few super minor lint fixes
...
Other lint warnings left behind are ones due to external package and
due to maintainer's preferences.
2015-11-19 06:56:28 -08:00
Matthew Holt
4d907d57fa
Whoops, emergency bug fix
...
Made a faulty assumption that virualhosts could share acme proxy handlers; turns out they can't without fumbling up the middleware configuration (middleware chains overlap and cross over into other virtualhosts)!
2015-11-18 18:41:01 -07:00
Matthew Holt
24352e799a
Remove SimpleHTTP and bump version to 0.8 beta 4!
2015-11-18 17:40:35 -07:00
Matthew Holt
e17d43b58a
Default host now empty string; default port now depends on host
...
Hosts which are eligible for automatic HTTPS have default port "https" but other hosts (wildcards, loopback, etc.) have the default port 2015. The default host of empty string should be more IPv6-compatible.
2015-11-18 10:05:13 -07:00
Matthew Holt
580b50ea20
letsencrypt: Support for http-01, awkwardly straddling that and SimpleHTTP for now
2015-11-17 18:11:19 -07:00
Matthew Holt
659df6967e
letsencrypt: Don't assume default port of 443
2015-11-17 16:17:43 -07:00
Matthew Holt
b9244cdf2e
templates: Another context fix when host header is missing port
2015-11-17 14:35:18 -07:00
Matthew Holt
a2ba00bdc8
Update docs n things
2015-11-17 10:19:03 -07:00
Matthew Holt
1d47e590e5
proxy: Make headers when upstream is created; avoid potential nil ptr deref
2015-11-17 10:18:13 -07:00
Matt Holt
280ba9db85
Merge pull request #345 from tw4452852/my_proxy
...
proxy: make http header block scoped
2015-11-17 08:20:29 -07:00
Matt Holt
7f98a6cccf
Merge pull request #347 from tw4452852/my_health
...
proxy: make tests workable when offline
2015-11-17 08:14:50 -07:00
Tw
a5b117fcdf
proxy: make tests workable when offline
...
Instead of accessing the google website, we setup a local server
for test, then tests will work fine even we are offline.
Fix issue #346
Signed-off-by: Tw <tw19881113@gmail.com>
2015-11-17 15:18:02 +08:00
Tw
f56d2090b6
proxy: make http header block scoped
...
Each proxy block should could specify its own http header
instead of sharing a global one.
Fix issue #341
Signed-off-by: Tw <tw19881113@gmail.com>
2015-11-17 14:07:32 +08:00
Matt Holt
37e3cf684d
Merge pull request #343 from abiosoft/master
...
proxy: 'except' property to ignore subpaths
2015-11-16 18:06:58 -07:00
Abiola Ibrahim
7949388da8
Proxy: Allow ignored subpaths.
2015-11-16 17:22:06 +01:00
Matthew Holt
dd119e04b1
Fix go vet
2015-11-15 11:06:50 -07:00
Matthew Holt
f7cfe79905
websocket: Simple buildEnv test, and fix for addresses without port
2015-11-15 11:05:26 -07:00
Matthew Holt
3dc5e0e181
Added a few little tests
2015-11-15 10:55:15 -07:00
Matthew Holt
1ca34c4ecf
Couple fixes for env var replacements and tests
2015-11-15 08:01:24 -07:00
Matt Holt
837ee9f042
Merge pull request #319 from mbanzon/issue-304
...
parser: Allow use of environment variables in tokens
2015-11-15 07:17:42 -07:00
Michael Banzon
d448c919e8
Changed implementation of issue #304 fix
...
It no longer uses regular expressions.
It supports both the Unix `{$ENV_VAR}` _and_ the Windows `{%ENV_VAR%}`
syntax.
Added test for both Unix and Windows env. syntax.
2015-11-15 11:16:37 +01:00
Matthew Holt
7d5b6b96ea
Make signal trapping optional
...
Go programs using the caddy package may not want the it to capture all the signals...
2015-11-14 21:59:43 -07:00
Matthew Holt
7b064535bf
Changed SIGINT and added support for HUP, QUIT, and TERM
2015-11-14 20:56:34 -07:00
Matthew Holt
b42334eb91
Several improvements and bug fixes related to graceful reloads
...
Added a -grace flag to customize graceful shutdown period, fixed bugs related to closing file descriptors (and dup'ed fds), improved healthcheck signaling to parent, fixed a race condition with the graceful listener, etc. These improvements mainly provide better support for frequent reloading or unusual use cases of Start and Stop after a Restart (POSIX systems). This forum thread was valuable help in debugging: https://forum.golangbridge.org/t/bind-address-already-in-use-even-after-listener-closed/1510?u=matt
2015-11-14 18:00:25 -07:00
Matthew Holt
94c746c44f
letsencrypt: Return an error if making site folder fails
2015-11-14 18:00:25 -07:00
Matthew Holt
7d46a7d5f4
Much refactor; many fix; so wow
...
Fixed pidfile writing problem where a pidfile would be written even if child failed, also cleaned up restarts a bit and fixed a few bugs, it's more robust now in case of failures and with logging.
2015-11-14 18:00:25 -07:00
Matthew Holt
9e2cef38f6
Write pidfile only if server starts successfully
...
Whether the original parent process or a child process as part of a restart, the pidfile will not be written/changed until that process has started successfully. It is written every time caddy.Start() succeeds (may be reundant, but that's probably okay).
2015-11-14 18:00:24 -07:00
Michael Banzon
e166ebf68b
Added test for environment replacement.
...
Added test for the fix of issue #304
2015-11-14 18:54:29 +01:00
Matt Holt
33b1d4c55d
Merge pull request #340 from cubicdaiya/setcpu-test-fix
...
fixed test failure on CPU 1 core machine.
2015-11-13 23:11:35 -07:00
Matt Holt
ae2e0900c1
Merge pull request #339 from cubicdaiya/vary-accept-encoding
...
gzip: added Vary: Accept-Encoding to response header.
2015-11-13 23:10:59 -07:00
Tatsuhiko Kubo
91ac2c58fa
fixed test failure.
...
When CPU is 1 core, expected value (int(0.5 * float32(maxCPU))) is zero.
But runtime.GOMAXPROCS(-1) returns always 1.
2015-11-14 11:38:26 +09:00
Tatsuhiko Kubo
69662d4d7d
gzip: added Vary: Accept-Encoding to response header.
...
When the downstream is cache server or CDN, it is important.
2015-11-14 06:11:37 +09:00
Matt Holt
fc6afe2a8b
Merge pull request #333 from mholt/firststartup
...
startup: Only run commands at first startup
2015-11-10 23:03:17 -07:00