mirror of
https://github.com/beetbox/beets.git
synced 2025-12-27 19:12:40 +01:00
Make falke8 happy and reference flask doc for the ReverseProxied class
This commit is contained in:
parent
9b383f87f4
commit
cf384109f0
1 changed files with 6 additions and 3 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue