angular-cli


Use angular-cli proxy for multiple backends


I had a first proxy-config.json that worked and still works :
{
"/api/*": {
"target": "http://localhost:3000/",
"pathRewrite": {"^/api" : ""},
"secure": false
}
}
That proxy my nodejs mock server.
Now I'd like to test my /api/myObjects java server api entry. It's relying on other API still being developped.
For tests i tried :
{
"/api2/*": {
"target": "http://localhost:8080/",
"pathRewrite": {"^/api2" : ""},
"secure": false
},
"/api/*": {
"target": "http://localhost:3000/",
"pathRewrite": {"^/api" : ""},
"secure": false
}
}
It successfully retrieved myObjects behind /api2/myObjects but for every other API, I get a 504 "gateway timeout".
I also tried the 3rd notation "Multiple entry" from the Webpack-dev-server documentation but i still get the 504.
Any ideas ?
Thanks in advance

Related Links

Angular CLI how to merge json files
Angular CLI (ng) use single instead of double quotes
can't install angular cli on ubuntu 16.04
How to solve No 'Access-Control-Allow-Origin' header is present on the requested resource with angular 2 service written with angular-cli?
Usage of watch parameter in eject command of Angular CLI
Serving and testing a bundle after ng build
routerLink stopped working in #angular/cli
How to run Angularcli project with https
what is npm i bootstrap#next?
Angular-Cli Best way to manage notices
Puzzling angular-cli AOT error
Create Project with Angular 4 Release using angularcli
addons removed in angular-cli.json whats the replacement
angular-cli: ng serve command with config error
Augury Angular-cli When I installed the augury .Error is as follows
Teamcity for building Angular cli app

Categories

HOME
arrays
paypal
converter
cil
puzzle
checkbox
performancecounter
antivirus
ocaml
jbehave
extract
terrain
filter
docker-windows
contact-form-7
netflix-feign
structuremap
constructor
lotus-notes
powershell-v3.0
oclint
outlook-web-addins
abcpdf
symfony-forms
lstm
multicore
google-maps-android-api-2
spring-test
jflex
visual-c++-2017
emv
pentaho-report-designer
edge-detection
cgal
fileinfo
mangodb
read-write
outsystems
fabric-digits
nsurlconnection
ssh.net
amd
scalafx
3scale
context-free-language
webdatagrid
multi-agent
slot
cdk
hpcc
paas
unity3d-editor
emoticons
iron.io
restivejs
barcode-printing
build-process
inject
push-diffusion
tomee
pydio
aescryptoserviceprovider
django-filer
dojox.charting
spatial-query
spring-lemon
codesign
dac
supportmapfragment
throughput
enyo
eyeql
ninject.web.mvc
lmfit
p-np
response-headers
futuretask
obfuscar
activity-streams
utf-32
cg
korma
picat
ifft
factors
crystal-reports-10
goinstant
va-list
swrl
html-form-post
haskell-platform
shortcuts
sharpmap
mvccontrib
isolatedstorage
mysql-error-1045
coff
windows-live-id
adobe-contribute
getresource
open-graph-beta
hardware-acceleration
clients
google-instant
boost-date-time
graniteds
inline-if
outlook-form
visual-studio-dbpro

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App