2010-12-17, 00:45
alshain Wrote:Can you include a parameter to change the base url? It would be great so I can dynamically adjust the URLs to make a reverse-proxy possible.
At the moment it fails to load the JS files, because the relative URL doesn't work, because it assumes a different base url.
Solved similar problem (I wanted to place awx in different directory). You need to change just two lines of the webinterface.awx/js/lib.xbmc.js file.
The first line (~ line 73) defines URL for JSON.RPC Ajax call:
Code:
url: './jsonrpc?awx',
Code:
return './vfs/' + encodeURI(url);
Code:
url: window.location.protocol + '//' + window.location.host + '/jsonrpc?awx',
Code:
return window.location.protocol + '//' + window.location.host + '/vfs/' + encodeURI(url);
May be it will help you?