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.proxifiedtofalse - set
client.gstreamerURLtowss://: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.hosttohublot_recommender_1 - set
client.reco.portto8080
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.jsremoveconst proxy = ...andproxy.create() -
in config.json, remove theclient.proxifiedoption and theproxysection -
in config.jsonensureclient.gstreamerURL,client.reco.hostandclient.reco.portare set to their correct un-proxified values -
remove lib/proxy.js, it is no longer useful -
in live-reco.jsyou can removeproxifiedConnectionHandlerand the test increateConnection, as they should be no longer useful -
in package.json, you can now remove thesockjs-client,webstomp-client,wsandxmlhttprequestdependencies, assuming they are still not used anywhere else (remember to updateyarn.lock)
Edited by Tom JORQUERA