Commit f69f720d authored by 智勇's avatar 智勇

删除useSystemName

parent a9307cf5
...@@ -50,9 +50,6 @@ for file in files: ...@@ -50,9 +50,6 @@ for file in files:
if rule.get('useNamespace', None) and rule['to']: if rule.get('useNamespace', None) and rule['to']:
rule['to'] = '-' + namespace + rule['to'] rule['to'] = '-' + namespace + rule['to']
if rule.get('useSystemName',None) and rule['reg']:
rule['reg'] = rule['reg'] + '/' + project + '/public'
if rule['reg']: if rule['reg']:
p = re.compile(r'' + rule['reg']) p = re.compile(r'' + rule['reg'])
line = re.sub(p, rule['to'], line) line = re.sub(p, rule['to'], line)
......
# reg: 匹配的正则 # reg: 匹配的正则
# to: 正则匹配后替换需要的值 # to: 正则匹配后替换需要的值
# useNamespace: 是否在替换的值前追加 '-[namespace名称]' # useNamespace: 是否在替换的值前追加 '-[namespace名称]'
# useSystemName: 项目名称
lkbDomain: &lkbDomain '.liangkebang.com' lkbDomain: &lkbDomain '.liangkebang.com'
...@@ -37,11 +36,6 @@ h5AuthRule: &h5AuthRule ...@@ -37,11 +36,6 @@ h5AuthRule: &h5AuthRule
to: 'operator.liangkebang.com' to: 'operator.liangkebang.com'
staticRule: &staticRule staticRule: &staticRule
reg: 'static.q-gp.com'
to: ''
useSystemName: true
staticRule2: &staticRule2
reg: '//static[-/0-9a-z.]*public' reg: '//static[-/0-9a-z.]*public'
to: '' to: ''
...@@ -52,5 +46,4 @@ common: &common ...@@ -52,5 +46,4 @@ common: &common
# xyqbApiDomainRule: *xyqbApiDomainRule # xyqbApiDomainRule: *xyqbApiDomainRule
qgApiRule: *qgApiRule qgApiRule: *qgApiRule
qgCookieRule: *qgCookieRule qgCookieRule: *qgCookieRule
# staticRule: *staticRule staticRule: *staticRule
staticRule2: *staticRule2 \ No newline at end of file
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment