添加API签名机制测试配置文件,包含访问密钥、签名算法等环境变量设置,同时更新.gitignore以忽略.env文件。

This commit is contained in:
SF-bytebytebrew
2025-05-22 10:31:44 +08:00
parent d1fdcfa7e7
commit 97328b3715
2 changed files with 7 additions and 1 deletions

7
.env Normal file
View File

@@ -0,0 +1,7 @@
# API签名机制测试配置
ACCESS_KEY_ID=test-access-key-id
SECRET_KEY=test-secret-key
CHANNEL_ID=test-channel-id
API_BASE_URL=https://api.example.com/v1
# 签名算法: MD5, SHA1, SHA256, HMAC_SHA256
SIGN_ALGORITHM=MD5

1
.gitignore vendored
View File

@@ -1,6 +1,5 @@
# 通用忽略
.DS_Store
.env
*.log
.idea/
.vscode/