View Single Post
Old 11-07-2008, 01:33 PM   #10
astrodad
Guru
astrodad ought to be getting tired of karma fortunes by now.astrodad ought to be getting tired of karma fortunes by now.astrodad ought to be getting tired of karma fortunes by now.astrodad ought to be getting tired of karma fortunes by now.astrodad ought to be getting tired of karma fortunes by now.astrodad ought to be getting tired of karma fortunes by now.astrodad ought to be getting tired of karma fortunes by now.astrodad ought to be getting tired of karma fortunes by now.astrodad ought to be getting tired of karma fortunes by now.astrodad ought to be getting tired of karma fortunes by now.astrodad ought to be getting tired of karma fortunes by now.
 
astrodad's Avatar
 
Posts: 962
Karma: 568242
Join Date: Dec 2007
Device: Kindle Oasis 3, Kindle Paperwhite 1, iPad, iPhone
Quote:
Originally Posted by Cold View Post
Really liking this feature

I run Calibre on a machine inside my home network and I have an Apache server on the edge of the network. I serve all the internal applications I use (Well, those with web interfaces) to the outside using this server via mod_proxy and mod_proxy_html (if required).

Calibres new web UI *nearly* works with this out of the box.

The issue I have is the gui.js file has references to /library and /get (The ajax calls for data) ... and I can't easily rewrite those.

Would you consider changing gui.js so that it's aware of the path it's been served from and sticks that in front of those two URIs?

Maybe using something like:

Code:
path = self.location.pathname.substring(0,self.location.pathname.lastIndexOf('/')));

Is your goal to get this to run under Apache directly?
astrodad is offline   Reply With Quote