fix: SSH密钥路径从根目录迁移到config目录
修改内容: 1. datasource/flask_server.py - 默认路径从 'hk_ecs.pem' 改为 'config/hk_ecs.pem' 2. docker-compose.yml - 挂载路径从 './hk_ecs.pem:/app/hk_ecs.pem' - 改为 './config/hk_ecs.pem:/app/config/hk_ecs.pem' 3. build-and-push.sh - 示例命令中的路径同步更新 4. README.md - 项目结构说明中更新密钥位置 验证: - rotation.yaml 已使用 config/hk_ecs.pem(无需修改) - flask_server 默认路径正确指向 config/hk_ecs.pem - 密钥文件存在于 config/hk_ecs.pem
This commit is contained in:
@@ -92,7 +92,7 @@ def get_ssh_config() -> Optional[Dict]:
|
||||
"host": os.getenv('SSH_HOST', ''),
|
||||
"port": int(os.getenv('SSH_PORT', '22')),
|
||||
"username": os.getenv('SSH_USERNAME', ''),
|
||||
"key_path": os.getenv('SSH_KEY_PATH', 'hk_ecs.pem'),
|
||||
"key_path": os.getenv('SSH_KEY_PATH', 'config/hk_ecs.pem'),
|
||||
"local_port": int(os.getenv('SSH_LOCAL_PORT', '1080')),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user