Spencer Gibb
d72c9f0dc4
make use of 'metadataMap.instanceId' consistent
2015-09-10 12:18:31 -06:00
Forstner Michael
cbc7aa37f4
Add X-Forwarded-Proto HTTP header to zuul proxy requests
...
If the zuul reverse proxy and the destination services are using a different scheme
(for example HTTPS on proxy side and HTTP on service side) an additional HTTP
header is required according to RFC7239 [http://tools.ietf.org/html/rfc7239 ]
2015-09-08 12:20:16 -06:00
Spencer Gibb
f60cc6fb42
Change from @Autowired to context.getBean.
...
Solves problems where FeignClientFactoryBean is run before auto-configuration.
fixed gh-441
2015-09-04 15:22:48 -06:00
Jakub Narloch
c9008ea277
Eureka health check
2015-09-03 17:39:22 -06:00
Dave Syer
72c89c51e6
Fix autoconfig ordering so that health indicators always work
2015-09-02 13:27:49 +01:00
Spencer Gibb
e31f41c2a9
Created StaticServerList and updated tests to use it.
2015-08-31 12:45:30 -06:00
Spencer Gibb
aef6d2a326
Use localhost if non-loopback lookup fails
2015-08-31 12:11:42 -06:00
Dave Syer
ddd1b35b71
Merge branch '1.0.x'
2015-08-25 11:13:46 +01:00
Dave Syer
ad86d48c6a
Use HttpHeaders for headers (case insensitive)
...
Fixes gh-306
2015-08-25 11:13:29 +01:00
Spencer Gibb
b494e1d2cc
refactor RibbonCommand to an interface and factory
...
lays the groundworkd to implement an httpclient ribbon command
fixes gh-412
2015-08-21 11:36:24 -06:00
Spencer Gibb
913091a716
added test for lists of request parameters
2015-08-19 10:52:01 -06:00
Spencer Gibb
d64cfa5cad
polish
2015-08-13 16:40:50 -06:00
Spencer Gibb
b7bcdddacd
add DiscoveryClientOptionalArgs constructor param to CloudEurekaClient
2015-08-13 15:41:53 -06:00
Stephen Oakey
c883495f8a
Detect https from Ribbon Client Config
...
RibbonLoadBalancer and RibbonLoadBalancer use IClientConfig IsSecure
property for service ID to determine if the service is secure. Replaces
scheme of URI of request with https if the request is secure.
fixes gh-337
2015-08-12 15:35:39 -06:00
Josh Ghiloni
539ca47bab
Make isSecure() match getPort() in secure vs non-secure resolution
2015-08-11 15:14:04 -06:00
Spencer Gibb
9e40714e3c
Use the first non-loopback address for host/ip addr
...
fixes gh-468
2015-08-07 18:17:59 -06:00
Jon Schneider
191a1ccc35
make EurekaClient available before smart lifecycle phase 0
2015-08-07 14:14:54 -06:00
Spencer Gibb
246830c9d3
Upgrade to Eureka 1.2.0
...
Implements forwarding of eureka CacheRefreshedEvent as HeartbeatEvent,
rather thank serialization hack. Uses new Eureka DI functionality
(mostly there, some issues). Updates EurekaJacksonCodec to be
"DataCenterAware". Reference EurekaClient interface rather than
DiscoveryClient class.
fixes gh-349
2015-08-05 13:37:36 -06:00
Spencer Gibb
e7a767e042
Make RxJavaAutoConfiguration ConditionalOnClass AsyncHandlerMethodReturnValueHandler
...
so non-web apps don't break
fixes gh-475
2015-08-05 10:39:08 -06:00
Jakub Narloch
69c3723aac
Updated documentation for Feign hierarchical clients
2015-08-04 11:16:04 -06:00
Spencer Gibb
5ac5f198aa
Support returning Observable from Spring MVC Controllers.
...
Via spring 4.2 new AsyncHandlerMethodReturnValueHandler
fixes gh-231
2015-07-30 14:05:46 -06:00
Spencer Gibb
e5e677c0ad
remove https port 8443 registration.
...
It overwrote the port 443 registration.
fixes gh-461
2015-07-27 15:00:49 -06:00
Jakub Narloch
798a19e468
Specifing only the serviceId causes NPE
2015-07-27 14:08:00 -06:00
Spencer Gibb
371f8b3bf2
feign polishing
2015-07-27 12:05:11 -06:00
Dave Syer
b0b4916d3c
If user configures hostname for eureka client, do not refresh it
...
Fixes gh-463
2015-07-27 17:55:01 +01:00
andreasevers
42f6e4d1f0
If more fine-grained ignoring is needed, you can specify specific patterns to ignore. These patterns are being evaluated at the end of the route location process, which means prefixes should be included in the pattern to warrant a match. Ignored patterns span all services and supersede any other route specification.
...
zuul:
ignoredPatterns: */admin/**
routes:
users: /myusers/**
This means that all calls such as "/myusers/101" will be forwarded to "/101" on the "users" service. But calls including "/admin/" will not resolve.
2015-07-27 10:27:43 -06:00
Spencer Gibb
a6b94a38fe
Add support for using Apache HttpClient with Feign
...
fixes gh-415
2015-07-15 17:23:41 -06:00
Jakub Stachowski
dd1c5bb495
Build query string from context instead of original request
...
Recreate query string from either getCurrentContext().getRequestQueryParams()
or original request as fallback. This allows to override query string
params in pre filters.
fixes gh-426
2015-07-14 09:43:52 -06:00
Spencer Gibb
9149319bd7
implement getHostName where refresh==true
2015-07-10 13:27:42 -06:00
Ryan J Baxter
f4a69e43eb
Sets the zone based on the hostname of the service if approximateZoneFromHostname is true.
...
The flag has always been there, it just isn't carried through to the ribbon client configuration
without this change if I understand this change correctly.
Fixes gh-315, fixes gh-423.
2015-07-10 11:47:35 +01:00
Spencer Gibb
34eb36323a
Merge pull request #390 from heyjustin/master
...
Mark an instance as DOWN when the application context is stopped.
2015-06-23 12:00:30 -04:00
Brandon Atkinson
283c0f7600
Fix unescaped paths in SimpleHostRoutingFilter.
...
Move common code so RibbonRoutingFilter can use the same code.
Fixes gh-407
2015-06-23 09:56:46 -06:00
Brandon Atkinson
80206e6b38
Removed deflate accept-encoding from outbound requests
2015-06-23 09:50:14 -06:00
Bertrand Renuart
2ba5c4b9ec
gh327: explicitly close the HttpResponse in case of timeout
2015-06-11 13:14:50 -06:00
Justin Walsh
69eaa27ccc
Mark an instance as DOWN when the application context is stopped.
...
Fixes gh-377
2015-06-10 10:37:53 +02:00
Spencer Gibb
440779bcf0
Revert "attempt ordering of RibbonClients.defaultConfiguration's"
...
This reverts commit 0d468b3930 .
2015-06-08 14:56:23 -06:00
Spencer Gibb
0d468b3930
attempt ordering of RibbonClients.defaultConfiguration's
...
ref gh-383
2015-06-08 14:55:22 -06:00
Spencer Gibb
0f2fbf8e1c
fixed test broken during rebase
2015-06-08 14:02:17 -06:00
Spencer Gibb
b746ad5504
Fix name of default ribbon config if config is not in an eclosing class
...
fixes gh-374
2015-06-08 13:44:07 -06:00
Dave Syer
a63b825690
Add call to Lifecycle.stop()
...
See gh-377
2015-06-08 06:33:45 +01:00
Spencer Gibb
fa84108ebf
fix swapped default values
...
fixes gh-372
2015-06-02 13:21:29 -06:00
Spencer Gibb
a0d72b3cbc
removed test with encoded slashes
2015-06-02 08:33:32 -06:00
Dave Syer
23cde30063
Align metrics with Spring Boot 1.3
...
Should be no change for users of Boot 1.2 right now, but with this
patch it is possible to use 1.3 with the new conventions for metrics
(e.g. in particular exporting by declaring beans of type
MetricWriter)
2015-06-02 15:29:08 +01:00
Spencer Gibb
899a577980
add test for zuul with encoded path parameter
2015-06-01 14:44:54 -06:00
Spencer Gibb
68c731d668
added test for metrics with period in name
2015-05-28 09:01:53 -06:00
Spencer Gibb
1a6602149d
Merge branch 'gh354b' of https://github.com/brenuart/spring-cloud-netflix into brenuart-gh354b
2015-05-28 08:43:23 -06:00
Spencer Gibb
dbef27ac6b
more RibbonClient tests
2015-05-28 08:32:01 -06:00
Bertrand Renuart
28f890989d
Allow for periods in metric name (see gh354)
2015-05-28 09:48:28 +02:00
Dave Syer
bd808a76fa
Add health.config for documentation purposes only
2015-05-27 10:27:02 +01:00
Spencer Gibb
bd5d00c082
encode uri if needed
...
fixes gh-347
2015-05-18 21:51:58 -06:00