kumahq / kuma-counter-demo

This is the counter demo for Kuma, that demonstrates the capabilities of the service mesh.
Apache License 2.0
15 stars 16 forks source link

make app x-forwarded-prefix aware #48

Open dennyh89 opened 3 days ago

dennyh89 commented 3 days ago

I wanted to deploy the app in a multizone mesh and behind a delegated gateway that uses path-based routing with strip_path, which leads to issues that the frontend is trying to call "/increment" without the prefix attached.

I have no experience in nodejs so i am open to discuss the changes, rework the contribution or just even learn how this could have been achieved more easily.

this commit adds the prefix to each link in the index.htlm and uses ejs to accomplish that.

Did you sign your commit? Instructions YES

Have you read Contributing guidelines? YES