Skip to content
Snippets Groups Projects
Commit df578a09 authored by IsolatedSushi's avatar IsolatedSushi
Browse files

Port changes

parent 22061141
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ static_resources: ...@@ -2,7 +2,7 @@ static_resources:
listeners: listeners:
- name: listener_0 - name: listener_0
address: address:
socket_address: { address: 0.0.0.0, port_value: 4949 } socket_address: { address: 0.0.0.0, port_value: 7050 }
filter_chains: filter_chains:
- filters: - filters:
- name: envoy.http_connection_manager - name: envoy.http_connection_manager
...@@ -36,4 +36,4 @@ static_resources: ...@@ -36,4 +36,4 @@ static_resources:
type: logical_dns type: logical_dns
http2_protocol_options: {} http2_protocol_options: {}
lb_policy: round_robin lb_policy: round_robin
hosts: [{ socket_address: { address: 192.168.1.34, port_value: 50459 }}] hosts: [{ socket_address: { address: host.docker.internal, port_value: 50460 }}]
\ No newline at end of file \ No newline at end of file
...@@ -9,4 +9,4 @@ For some reason with vue it cant get the dapr.HTTP environment variable (even th ...@@ -9,4 +9,4 @@ For some reason with vue it cant get the dapr.HTTP environment variable (even th
docker run -d -v C:\Users\simen\OneDrive\Documents\GitHub\dummy-vue-grpc\envoy.yaml:/etc/envoy/envoy.yaml:ro -p 4949:4949 -p 50459:50459 envoyproxy/envoy:v1.15.0 docker run -d -v C:\Users\simen\OneDrive\Documents\GitHub\dummy-vue-grpc\envoy.yaml:/etc/envoy/envoy.yaml:ro -p 7050:7050 -p 50460:50460 envoyproxy/envoy:v1.15.0
\ No newline at end of file \ No newline at end of file
...@@ -32,6 +32,8 @@ export default { ...@@ -32,6 +32,8 @@ export default {
axios.get(dapr_url + "/method/url").then(response=> axios.get(dapr_url + "/method/url").then(response=>
{ {
console.log("Response: ");
console.log(response);
console.log("Dapr backend running on: " + response.data["ip_address"]+":"+response.data["port"]); console.log("Dapr backend running on: " + response.data["ip_address"]+":"+response.data["port"]);
} }
...@@ -39,9 +41,9 @@ export default { ...@@ -39,9 +41,9 @@ export default {
); );
var r = axios.post(dapr_url + "/method/start", 1).then((Response) => { var r = axios.post(dapr_url + "/method/start", 1).then((Response) => {
if (Response.data["successful"]) { if (Response.data["successful"]) {
console.log("Grpc"); console.log(Response.data);
var connectURL = "http://" + Response.data["url"]; var connectURL = Response.data["url"];
connectURL = "http://0.0.0.0:4949" connectURL = "http://" + window.location.hostname + ":7050"
console.log(connectURL) console.log(connectURL)
var client = new ProjectorClient( var client = new ProjectorClient(
connectURL, connectURL,
...@@ -55,8 +57,7 @@ export default { ...@@ -55,8 +57,7 @@ export default {
var stream = client.getProjectionPoints(param); var stream = client.getProjectionPoints(param);
stream.on("data", (response) => { stream.on("data", (response) => {
console.log("response"); this.$emit('newPoint', response);
console.log(response);
}); });
stream.on("error", (err) => { stream.on("error", (err) => {
this.errorAlert = true this.errorAlert = true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment