| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- {
- "ReRoutes": [
- //UserService 8001
- {
- "DownstreamPathTemplate": "/api/{url}",
- "DownstreamScheme": "http",
- "ServiceName": "UserService",
- "UseServiceDiscovery": true,
- "UpstreamPathTemplate": "/api/user/{url}",
- "UpstreamHttpMethod": [ "Get", "Post" ],
- "LoadBalancerOptions": {
- "Type": "LeastConnection"
- }
- },
- //ContentService 8002
- {
- "DownstreamPathTemplate": "/api/{url}",
- "DownstreamScheme": "http",
- "ServiceName": "ContentService",
- "UseServiceDiscovery": true,
- "UpstreamPathTemplate": "/api/content/{url}",
- "UpstreamHttpMethod": [ "Get", "Post" ],
- "LoadBalancerOptions": {
- "Type": "LeastConnection"
- }
- },
- //ReportService 8003
- {
- "DownstreamPathTemplate": "/api/{url}",
- "DownstreamScheme": "http",
- "ServiceName": "ReportService",
- "UseServiceDiscovery": true,
- "UpstreamPathTemplate": "/api/report/{url}",
- "UpstreamHttpMethod": [ "Get", "Post" ],
- "LoadBalancerOptions": {
- "Type": "LeastConnection"
- }
- },
- //SystemConfigService 8009
- {
- "DownstreamPathTemplate": "/api/{url}",
- "DownstreamScheme": "http",
- "ServiceName": "SystemConfigService",
- "UseServiceDiscovery": true,
- "UpstreamPathTemplate": "/api/sysconfig/{url}",
- "UpstreamHttpMethod": [ "Get", "Post" ],
- "LoadBalancerOptions": {
- "Type": "LeastConnection"
- }
- }
- ],
- "GlobalConfiguration": {
- "BaseUrl": "http://gateway.iquizoo.com",
- "ServiceDiscoveryProvider": {
- "Host": "172.16.45.62",
- "Port": 8500,
- "Type": "Consul",
- "PollingInterval": 100
- }
- }
- }
|