Remove proxy
Due to #67 we introduced a proxy in 0ce98228 (tagged with proxy
).
This is an ugly workaround, and should be removed when #67 is fixed.
To test that everything work without proxy, do the following in config.json
:
- set
client.proxified
tofalse
- set
client.gstreamerURL
towss://:hublot_kaldi-gstreamer_1:80/client/ws/speech?content-type=audio/x-matroska,+rate=(int)48000,+channels=(int)
(or whatever is the correct SSL ws URL) - set
client.reco.host
tohublot_recommender_1
- set
client.reco.port
to8080
Everything should work as before, assuming SSL is on (note that every http://
url in live-reco.js
is assumed to have been changed to https://
due solving #67).
Does it works? Congrats'!
You can now clean up to remove the proxy:
-
in app.js
removeconst proxy = ...
andproxy.create()
-
in config.json
, remove theclient.proxified
option and theproxy
section -
in config.json
ensureclient.gstreamerURL
,client.reco.host
andclient.reco.port
are set to their correct un-proxified values -
remove lib/proxy.js
, it is no longer useful -
in live-reco.js
you can removeproxifiedConnectionHandler
and the test increateConnection
, as they should be no longer useful -
in package.json
, you can now remove thesockjs-client
,webstomp-client
,ws
andxmlhttprequest
dependencies, assuming they are still not used anywhere else (remember to updateyarn.lock
)
Edited by Tom JORQUERA