Skip to content

Commit 4e785ea

Browse files
committed
fix: update environment variable names for consistency across Dockerfile, README, and config
1 parent eba19d5 commit 4e785ea

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ FROM node:20-alpine AS runner
1717
ENV DOMAINS example.com
1818
1919
ENV DNS_TYPE dnspod
20-
ENV ALICLOUD_ACCESS_KEY foo
21-
ENV ALICLOUD_SECRET_KEY bar
20+
ENV ACCESS_KEY_ID foo
21+
ENV ACCESS_SECRET bar
2222
ENV ENDPOINT https://cdn.aliyuncs.com
2323
ENV API_VERSION 2018-05-10
2424

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ Automatically apply and renew certificates for domains hosted on aliyun cdn. It
1515
```bash
1616

1717
$ docker pull registry.ap-southeast-1.aliyuncs.com/kemono/cert-manager
18-
$ docker run -e ALICLOUD_ACCESS_KEY='ACCESS KEY for your aliyun account' \
19-
-e ALICLOUD_SECRET_KEY='ACCESS SECRET for your aliyun account' \
18+
$ docker run -e ACCESS_KEY_ID='ACCESS KEY for your aliyun account' \
19+
-e ACCESS_SECRET='ACCESS SECRET for your aliyun account' \
2020
-e DOMAINS='example.com,cdn1.example.com,cdn2.example.com' \
2121
-e EMAIL='[email protected]' \
2222
-e DNS_TYPE='dnspod' \
@@ -46,8 +46,8 @@ RAM policy needed for this operation:
4646

4747
## Environment Viarables
4848

49-
- `ALICLOUD_ACCESS_KEY`: ACCESS KEY for aliyun account, we suggest you to use ram account for minimum privileges.
50-
- `ALICLOUD_SECRET_KEY`: ACCESS SECRET for aliyun account.
49+
- `ACCESS_KEY_ID`: ACCESS KEY for aliyun account, we suggest you to use ram account for minimum privileges.
50+
- `ACCESS_SECRET`: ACCESS SECRET for aliyun account.
5151
- `DOMAINS`: The domains need to apply for free certs. These domains must be using aliyun CDN services already. Multiple domains should be separeted by comma, and they must use the same DNS provider.
5252
- `DNS_TYPE`: The DNS provider used by the domains above.
5353
- According to the DNS provider you use, you need to set different environment viarables for proper API token:

README.zh.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
```bash
1414

1515
$ docker pull registry.ap-southeast-1.aliyuncs.com/kemono/cert-manager
16-
$ docker run -e ALICLOUD_ACCESS_KEY='阿里云的 ACCESS KEY' \
17-
-e ALICLOUD_SECRET_KEY='阿里云的 ACCESS SECRET' \
16+
$ docker run -e ACCESS_KEY_ID='阿里云的 ACCESS KEY' \
17+
-e ACCESS_SECRET='阿里云的 ACCESS SECRET' \
1818
-e DOMAINS='example.com,cdn1.example.com,cdn2.example.com' \
1919
-e EMAIL='[email protected]' \
2020
-e DNS_TYPE='dnspod' \
@@ -44,8 +44,8 @@ $ docker run -e ALICLOUD_ACCESS_KEY='阿里云的 ACCESS KEY' \
4444

4545
## 环境变量说明
4646

47-
- `ALICLOUD_ACCESS_KEY`:阿里云的 ACCESS KEY,建议使用最小权限
48-
- `ALICLOUD_SECRET_KEY`:阿里云的 ACCESS SECRET,建议使用最小权限
47+
- `ACCESS_KEY_ID`:阿里云的 ACCESS KEY,建议使用最小权限
48+
- `ACCESS_SECRET`:阿里云的 ACCESS SECRET,建议使用最小权限
4949
- `DOMAINS`:需要申请证书的域名列表,这些域名也必须是正在使用阿里云 CDN 服务的,多个域名列表以英文逗号分隔,这些域名必须使用同一个 DNS 服务商
5050
- `DNS_TYPE`:上述域名所使用的 DNS 服务商
5151
- 根据 DNS 服务商的不同,需要配置额外的环境变量:

lib/config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
const ENV = process.env;
22

33
module.exports = {
4-
accessKeyId: ENV.ALICLOUD_ACCESS_KEY,
5-
accessKeySecret: ENV.ALICLOUD_SECRET_KEY,
4+
accessKeyId: ENV.ACCESS_KEY_ID,
5+
accessKeySecret: ENV.ACCESS_SECRET,
66
endpoint: ENV.ENDPOINT || 'https://cdn.aliyuncs.com',
77
apiVersion: ENV.API_VERSION || '2018-05-10',
88
email: ENV.EMAIL,

0 commit comments

Comments
 (0)