diff --git a/beetsplug/web/__init__.py b/beetsplug/web/__init__.py index e49fde046..3c18ebd5d 100644 --- a/beetsplug/web/__init__.py +++ b/beetsplug/web/__init__.py @@ -371,10 +371,11 @@ class WebPlugin(BeetsPlugin): cmd.func = func return [cmd] + class ReverseProxied(object): - '''Wrap the application in this middleware and configure the - front-end server to add these headers, to let you quietly bind - this to a URL other than / and to an HTTP scheme that is + '''Wrap the application in this middleware and configure the + front-end server to add these headers, to let you quietly bind + this to a URL other than / and to an HTTP scheme that is different than what is used locally. In nginx: @@ -386,6 +387,8 @@ class ReverseProxied(object): proxy_set_header X-Script-Name /myprefix; } + From: http://flask.pocoo.org/snippets/35/ + :param app: the WSGI application ''' def __init__(self, app):