WIP-CHECKPOINT[auth-refactor]: 固化工程师崩溃前部分成果 + 同树其他未提交WIP(仅源码,不含密钥/二进制)-- 待重激活工程师续作

This commit is contained in:
Simon
2026-07-07 21:52:11 +08:00
parent 242c1967ff
commit fab75760e0
203 changed files with 21504 additions and 3345 deletions
+16
View File
@@ -0,0 +1,16 @@
#!/usr/bin/env python3
"""Add IP 115.227.36.10 to nginx whitelist"""
with open('/opt/wecom-it-desk/nginx/nginx.conf', 'r') as f:
content = f.read()
# Add after existing office IPs
content = content.replace(
'allow 218.75.34.87;',
'allow 218.75.34.87;\n allow 115.227.36.10; # 新增办公网出口IP'
)
with open('/opt/wecom-it-desk/nginx/nginx.conf', 'w') as f:
f.write(content)
print('Done')