While using the common container, we always use the following line:

                   var cfg = {},

            cfg[osapi.container.ServiceConfig.API_PATH] = CONTEXT_ROOT +
"/rpc";
            var cc = new osapi.container.Container(cfg);

If we deploy Shindig on server 1(on port 8080), and the application on
server 2(on port 8081). How to config the service api path.

If I config it to a absolute url , such as "http://localhost:8080/cre/rpc";,
then the final request will send to
"http://localhost:8081http//localhost:8080/cre/rpc?st=john.doe%3Ajohn.doe%3Aappid%3Acont%3Aurl%3A0%3Adefault";,
while the right url should be "
http://localhost:8081/proxy?url=http//localhost:8080/cre/rpc?st=john.doe%3Ajohn.doe%3Aappid%3Acont%3Aurl%3A0%3Adefault
".

Anyone know how to config it? Thanks!

Reply via email to