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

Importing Global SCSS into Component SCSS with Angular-CLI
Error during AOT build with angular-cli 24 and Angular 2.4.1
Add importer to node-sass in angular-cli project
angular-cli#1.0.0-beta.23 (2016-12-15) NOT on npm
Angular cli for existing github project
How to pass config data to NgModule so NgModule will be compiled with AOT
Cloning a repo based on Angular CLI
How can I speed up Angular CLI Live Reload - 1-2 minutes per change
Generating a barrel when calling ng g component <myName>
Setting up tether-drop to work with angular-cli#1.0.0-beta.24
Angular CLI (AOT) gives error: ERROR in Cannot determine the module for class
Angular CLI - ng serve won't run unless I specify port
ERROR in Multistyles…Module not Found (Angular-cli.json)
Angular Cli support for inline templates and css
Angular Cli - How do I rebuild my project
How to change angular 2 port from 4200 to any other

Categories

HOME
label
otrs
deep-linking
ubuntu-12.04
survival-analysis
azureservicebus
apple-numbers
goutte
eclipse-cdt
lagom
xlsx
abcpdf
informatica-powercenter
cs-cart
simple-injector
jacoco
ejs
spring-cloud-config
mule-studio
redux-observable
zend-framework-mvc
multicore
fop
onsen-ui
header-files
bootstrap-typeahead
onesignal
owl-api
jboss5.x
encase
fractals
qtablewidget
recurrence-relation
nodeclipse
issue-tracking
delphi-10.1-berlin
socketscan
control-flow-graph
g1gc
crop
stress-testing
lirc
tableau-server
w3-total-cache
livescribe
mbaas
ruby-on-rails-2
info
emoticons
bettercms
ebtables
push-diffusion
galleriffic
audioqueue
mongoose-populate
instruments
gradle-eclipse
achievements
faraday
date-format
group-concat
multinomial
loose-typing
jta
mptcp
harp
sparse-file
pgm
uos
hg-git
cpu-speed
left-recursion
author
humanizer
bullet
colt
zipalign
winrt-httpclient
ftp4j
gridworld
soa-suite
qtgui
graph-coloring
prng
wpdb
returnurl
qsqltablemodel
javascriptserializer
parameterization
makefile-project
mysql-error-1045
ajax.beginform
zookeeper
electronic-signature
msbuildextensionpack
sendfile
nvelocity
libavformat
j-interop
linfu
oggvorbis
usability-testing
callgrind
visual-studio-2010-beta-2
lazy-c++
inline-if

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