Skip to content

Commit

Permalink
docs: README add Environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeyi-Lin committed Sep 7, 2024
1 parent 05dda47 commit 6617dca
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,21 @@ docker run -d -p 8080:8080 linzeyi/hivision_idphotos python3 deploy_api.py
docker compose up -d
```

## 环境变量

本项目提供了一些额外的配置项,使用环境变量进行设置:

| 环境变量 | 类型 | 描述 | 示例 |
|--|--|--|--|
| FACE_PLUS_API_KEY | 可选 | 这是你在 Face++ 控制台申请的 API 密钥 | `7-fZStDJ····` |
| FACE_PLUS_API_SECRET | 可选 | Face++ API密钥对应的Secret | `VTee824E····` |

docker使用环境变量示例:
```bash
docker run linzeyi/hivision_idphotos \
-e FACE_PLUS_API_KEY=7-fZStDJ····
```

<br>

# 🌲 友情链接
Expand Down

0 comments on commit 6617dca

Please sign in to comment.