280ba9db85
Merge pull request #345 from tw4452852/my_proxy
...
proxy: make http header block scoped
2015-11-17 08:20:29 -07:00
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
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
7949388da8
Proxy: Allow ignored subpaths.
2015-11-16 17:22:06 +01:00
4ebff9a130
core: Major refactor for graceful restarts; numerous fixes
...
Merged config and app packages into one called caddy. Abstracted away caddy startup functionality making it easier to embed Caddy in any Go application and use it as a library. Graceful restart (should) now ensure child starts properly. Now piping a gob bundle to child process so that the child can match up inherited listeners to server address. Much cleanup still to do.
2015-10-26 13:34:31 -06:00
f9bc74626d
Address various lint and gocyclo warnings. Fixes #253
2015-10-11 16:28:02 -04:00
6cbd3ab096
proxy: 64-bit word alignment for 32-bit systems ( fixes #252 )
2015-09-22 16:47:39 -06:00
a585379bbb
proxy: Parse error if property is unknown
2015-07-28 13:50:40 -06:00
04571ff393
NewReplacer takes third argument for empty value string
2015-07-24 10:27:19 -06:00
41e1f1ffa5
Update error strings (start with lowercase letters)
2015-06-07 20:49:17 -04:00
822a615c6c
rollback tests
2015-06-04 14:02:52 +00:00
593557659c
fix tests and change naming
2015-06-04 13:57:39 +00:00
4790dacbf7
add without to proxy middleware
2015-06-03 18:06:24 +00:00
9ce0e8e17c
proxy: Added tests for reverse websocket proxy
2015-06-01 22:39:53 -06:00
68cd4bdeab
check server response instead of client
2015-06-01 19:29:32 -07:00
ccd3e55b32
changes as noted in PR
2015-06-01 10:23:57 -07:00
56ec7b9887
websocket directive, upgrade comparison
2015-05-30 11:34:54 -07:00
2d6ff40649
add supported for ws in reverse proxy
2015-05-29 19:21:50 -07:00
dd946f8ab5
moved init to policy.go
2015-05-28 18:16:23 -07:00
593aec9ab1
changes per comment
2015-05-28 16:53:54 -07:00
6b173b5170
added custom policy support
2015-05-28 15:56:11 -07:00
506f131428
Fix lint warnings for middleware/proxy
2015-05-24 20:58:17 -04:00
0ed5b364c6
Refactor proxy middleware so that 1.) From() is exposed 2.) Other upstreams can be implemented/plugged in
2015-05-04 19:58:18 -07:00
6029973bdc
Major refactoring of middleware and parser in progress
2015-05-04 11:04:37 -06:00
264e5b7911
Use the provided Replacer tools in order to proxy string interpolation.
2015-05-03 13:33:08 -07:00
4a4b80450a
Upgrade proxy middleware. Add support for: multiple backends, load balancing, health checks, and pluggable backends
2015-05-02 22:45:01 -07:00
d8e7adcdb4
Refactored proxy middleware
2015-04-11 17:24:47 -06:00
d33256f1dc
Refactor: Middleware chain uses Handler instead of HandlerFunc
2015-04-02 23:30:54 -06:00
9f793dad28
Proxy destination may include scheme
2015-03-31 23:53:39 -06:00
6bf36d922c
Refactored proxy middleware to return errors
2015-03-28 16:56:56 -06:00
0e43271cc9
Basic proxy feature works
2015-02-02 23:41:35 -07:00
ae2a2d5b00
Godoc for middleware packages and server package
2015-01-29 23:52:18 -07:00
13cf980879
Moved proxy middleware into its own package
2015-01-29 22:05:36 -07:00