Adding proxyparameters

This commit is contained in:
László Károlyi 2018-05-27 14:03:11 +02:00
parent 84466d4ae4
commit 5fad763ae9
No known key found for this signature in database
GPG Key ID: 2DCAF25E55735BFE

View File

@ -132,6 +132,25 @@ class CommandLineInterface(object):
default=False, default=False,
action="store_true", action="store_true",
) )
self.arg_proxy_host = self.parser.add_argument(
"--proxy-headers-host",
dest="proxy_headers_host",
help="Specify which header will be used for getting the host "
"part. Can be omitted, requires --proxy-headers to be specified "
"when passed. \"X-Real-IP\" (when passed by your webserver) is a "
"good candidate for this.",
default=False,
action="store",
)
self.arg_proxy_port = self.parser.add_argument(
"--proxy-headers-port",
dest="proxy_headers_port",
help="Specify which header will be used for getting the port "
"part. Can be omitted, requires --proxy-headers to be specified "
"when passed.",
default=False,
action="store",
)
self.parser.add_argument( self.parser.add_argument(
"application", "application",
help="The application to dispatch to as path.to.module:instance.path", help="The application to dispatch to as path.to.module:instance.path",