You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var http = require('http'),
httpProxy = require('http-proxy');
var proxy = new httpProxy.createProxyServer({
target: {
host: '10.10.10.10', // fake ip of cause
port: 8787,
hostRewrite: true,
autoRewrite: true,
protocolRewrite: true,
httpVersion: '1.0'
}
});
var proxyServer = http.createServer(function (req, res) {
proxy.web(req, res);
});
// Listen to the `upgrade` event and proxy the
proxyServer.on('upgrade', function (req, socket, head) {
proxy.ws(req, socket, head);
});
proxyServer.listen(80);
This almost work, but I get a error when signing into the Rstudio server. It works fine using the nginx proxy from the link above. Does anybody known what I am doing wrong?
I have used node-http-proxy for other project without problem, an I really like the versatility of the system!
Best
Anders ML
The text was updated successfully, but these errors were encountered:
Hi, I want to do something similar to
https://support.rstudio.com/hc/en-us/articles/200552326-Running-RStudio-Server-with-a-Proxy
but with node-http-proxy.
This almost work, but I get a error when signing into the Rstudio server. It works fine using the nginx proxy from the link above. Does anybody known what I am doing wrong?
I have used node-http-proxy for other project without problem, an I really like the versatility of the system!
Best
Anders ML
The text was updated successfully, but these errors were encountered: