mirror of https://github.com/yandex/gixy
parent
f5a54ad161
commit
0e032605b5
|
@ -84,6 +84,20 @@ class AuthRequestSetDirective(Directive):
|
||||||
return [Variable(name=self.variable, value=self.value, provider=self)]
|
return [Variable(name=self.variable, value=self.value, provider=self)]
|
||||||
|
|
||||||
|
|
||||||
|
class PerlSetDirective(Directive):
|
||||||
|
nginx_name = 'perl_set'
|
||||||
|
provide_variables = True
|
||||||
|
|
||||||
|
def __init__(self, name, args):
|
||||||
|
super(PerlSetDirective, self).__init__(name, args)
|
||||||
|
self.variable = args[0].strip('$')
|
||||||
|
self.value = args[1]
|
||||||
|
|
||||||
|
@property
|
||||||
|
def variables(self):
|
||||||
|
return [Variable(name=self.variable, provider=self, have_script=False)]
|
||||||
|
|
||||||
|
|
||||||
class SetByLuaDirective(Directive):
|
class SetByLuaDirective(Directive):
|
||||||
nginx_name = 'set_by_lua'
|
nginx_name = 'set_by_lua'
|
||||||
provide_variables = True
|
provide_variables = True
|
||||||
|
|
Loading…
Reference in New Issue