feat:日志敏感信息过滤
This commit is contained in:
1 parent
2c1bf9b967
commit
26d968ec55
45 files changed
+2515
-147
No files matched your search
@@ -57,6 +57,17 @@ def main():
|
||||
'legacy-dart': {'enabled': True, 'extensions': ['jpg', 'jpeg', 'png', 'gif', 'webp', 'bmp', 'svg', 'ico']}}
|
||||
for name, value in defaults.items():
|
||||
policy.setdefault(name, value)
|
||||
upload = policy.setdefault('upload', {})
|
||||
for name, value in {
|
||||
'ttl-seconds': 300,
|
||||
'max-file-bytes': 200 * 1024 * 1024,
|
||||
'allowed-extensions': ['jpg', 'jpeg', 'png', 'gif', 'webp', 'bmp', 'ico', 'svg',
|
||||
'pdf', 'apk', 'doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx',
|
||||
'txt', 'csv', 'zip', 'mp4', 'mov', 'webm', 'avi', 'mp3',
|
||||
'wav', 'm4a', 'aac', 'ogg', 'amr', 'flac'],
|
||||
'internal-extensions': ['log', 'gz'],
|
||||
}.items():
|
||||
upload.setdefault(name, value)
|
||||
if args.mode:
|
||||
policy['mode'] = args.mode
|
||||
policy['public-base-url'] = args.public_base_url.rstrip('/')
|
||||
|
||||
Reference in new issue
Block a user