Make falke8 happy and reference flask doc for the ReverseProxied class

This commit is contained in:
Olivier Biesmans 2017-03-19 21:16:26 +00:00
parent 9b383f87f4
commit cf384109f0

View file

@ -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):