Web interface absolute paths

28 views
Skip to first unread message

Ringerl

unread,
Feb 24, 2013, 1:14:46 PM2/24/13
to beets...@googlegroups.com
I noticed that all the paths in the web interface has absolute paths.

I'd like to run the web interface behind a reverse proxy in a subdirectory (e.g. http://musicbox/beets/).

Any pointers?

Adrian Sampson

unread,
Feb 24, 2013, 5:36:33 PM2/24/13
to beets...@googlegroups.com
Like many web apps, beets does currently assume that it's running at the root of a host. You can go with a virtual host (beets.musicbox), try to configure your proxy web server to rewrite URLs, or change the plugin to use different URLs.

For the latter, which might be the best choice, you might want to start with Flask's documentation. The url_for function generates links; calls to this will need to be changed (possibly just by adding _external=True).

Adrian
--
You received this message because you are subscribed to the Google Groups "beets" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beets-users...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply all
Reply to author
Forward
0 new messages