私は現在、nginxによって提供される送信デーモンWeb UIを持っています
server {
listen 2324;
server_name torrent.example.com;
location /rpc {
proxy_pass http://127.0.0.1:9091/transmission/rpc;
}
location /transmission {
proxy_pass http://127.0.0.1:9091/transmission;
}
location / {
proxy_pass http://127.0.0.1:9091/transmission/web/;
}
}
https://github.com/stormpath/stormpath-express-sampleこのダッシュボード/ユーザー インターフェイスを介してこのページを表示しようとしています
routes/index.js に私が持っている
router.get('/torrent', function (req, res, next) {
if (!req.user || req.user.status !== 'ENABLED') {
return res.redirect('/login');
}
var newurl = 'http://127.0.0.1:2324'
request(newurl).pipe(res)
});
/torrent に移動すると html が表示されるが、images/css/js が表示されない
どうもありがとう