declare the use_forwarded_for flag
This commit is contained in:
@@ -47,6 +47,7 @@ flags.DEFINE_integer('lockout_window', 15,
|
||||
flags.DEFINE_string('keystone_ec2_url',
|
||||
'http://localhost:5000/v2.0/ec2tokens',
|
||||
'URL to get token from ec2 request.')
|
||||
flags.DECLARE('use_forwarded_for', 'nova.api.auth')
|
||||
|
||||
|
||||
class RequestLogging(wsgi.Middleware):
|
||||
|
||||
@@ -30,6 +30,7 @@ from nova.api.ec2 import cloud
|
||||
|
||||
LOG = logging.getLogger('nova.api.ec2.metadata')
|
||||
FLAGS = flags.FLAGS
|
||||
flags.DECLARE('use_forwarded_for', 'nova.api.auth')
|
||||
|
||||
|
||||
class MetadataRequestHandler(wsgi.Application):
|
||||
|
||||
Reference in New Issue
Block a user