@@ -38,86 +38,7 @@ curl -fsSL https://gh-proxy.com/https://raw.githubusercontent.com/https-cert/dep
3838curl -fsSL https://gh-proxy.com/https://raw.githubusercontent.com/https-cert/deploy/main/scripts/install.sh | sh -s -- --uninstall --purge
3939```
4040
41- ### 2. Configure
42-
43- The install script copies the packaged ` config.yaml ` template to ` /opt/anssl/config.yaml ` and never overwrites an existing config file. On first install, edit that file and set its ` accessKey ` and any deployment targets you want to enable.
44-
45- Running the install script again keeps the existing ` config.yaml ` . If anssl is installed but not running, the script updates the binary directly; if anssl is running, the script stops the old daemon before installing the new version.
46-
47- For later updates, replace only the ` anssl ` executable to avoid overwriting an existing ` config.yaml ` .
48-
49- ` config.yaml ` example:
50-
51- ``` yaml
52- server :
53- # Get this from anssl.cn -> Settings -> Profile
54- accessKey : " your_access_key_here"
55- # HTTP-01 validation service port
56- port : 19000
57-
58- ssl :
59- # Nginx certificate directory (optional; leave empty to disable Nginx deployment)
60- nginxPath : " "
61- # Apache certificate directory (optional; leave empty to disable Apache deployment)
62- apachePath : " "
63- # RustFS TLS certificate directory (optional; leave empty to disable RustFS deployment)
64- rustFSPath : " "
65- # FeiNiu deployment (optional)
66- feiNiuEnabled : false
67- # 1Panel configuration (optional; leave empty to disable 1Panel deployment)
68- onePanel :
69- url : " "
70- apiKey : " "
71-
72- update :
73- # Mirror type: github, ghproxy, custom
74- mirror : " ghproxy"
75- # Required when mirror is custom
76- customUrl : " "
77- # HTTP proxy URL (optional)
78- proxy : " "
79-
80- # Cloud provider configuration (optional)
81- provider :
82- - name : " aliyun"
83- remark : " Alibaba Cloud"
84- auth :
85- accessKeyId : " your-aliyun-access-key-id"
86- accessKeySecret : " your-aliyun-access-key-secret"
87- # ESA-specific field (only used for ESA deployment)
88- esaSiteId : " your-esa-site-id"
89-
90- - name : " qiniu"
91- remark : " Qiniu Cloud"
92- auth :
93- accessKey : " your-qiniu-access-key"
94- accessSecret : " your-qiniu-access-secret"
95-
96- - name : " cloudTencent"
97- remark : " Tencent Cloud"
98- auth :
99- secretId : " your-tencent-secret-id"
100- secretKey : " your-tencent-secret-key"
101- ` ` `
102-
103- > #### Supported Cloud Providers
104- >
105- > | Provider | ` name` value | Auth fields |
106- > | :------------ | :-------------- | :-------------------------------------------------- |
107- > | Alibaba Cloud | `aliyun` | accessKeyId, accessKeySecret (ESA optional: esaSiteId) |
108- > | Qiniu Cloud | `qiniu` | accessKey, accessSecret |
109- > | Tencent Cloud | `cloudTencent` | secretId, secretKey |
110-
111- > # ### Alibaba Cloud CAS/ESA Separation (No Auto-Detection)
112- >
113- > - Select “Alibaba Cloud - CAS Upload Certificate”: calls CAS `UploadUserCertificate`
114- > - Select “Alibaba Cloud - ESA Upload Certificate”: calls ESA `SetCertificate` (requires `esaSiteId`)
115- >
116- > # ### Tencent Cloud Certificate Upload
117- >
118- > - Select “Tencent Cloud - Upload Certificate”: uses Tencent Cloud Go SDK to call SSL `UploadCertificate` (`ssl.tencentcloudapi.com`, `2019-12-05`)
119-
120- # ## 3. Configure Nginx
41+ ### 2. Configure Nginx
12142
12243Add an HTTP-01 reverse proxy rule (for certificate issuance):
12344
@@ -135,7 +56,7 @@ Reload Nginx:
13556sudo nginx -t && sudo nginx -s reload
13657```
13758
138- # ## 4 . Run
59+ ### 3 . Run
13960
14061``` bash
14162# Start daemon
@@ -177,23 +98,6 @@ anssl check-update # Check updates
17798anssl update # Run update
17899```
179100
180- # # Configuration Reference
181-
182- | Config key | Required | Description |
183- | ---------------------- | -------- | ------------------------------------------------------------ |
184- | `server.accessKey` | ✅ | Access key from anssl.cn |
185- | `server.port` | ❌ | HTTP-01 validation port, default `19000` |
186- | `ssl.nginxPath` | ❌ | Nginx cert directory; auto deploy + reload Nginx |
187- | `ssl.apachePath` | ❌ | Apache cert directory; auto deploy + reload Apache |
188- | `ssl.rustFSPath` | ❌ | RustFS TLS cert directory; auto deploy certificates |
189- | `ssl.feiNiuEnabled` | ❌ | FeiNiu OS deployment switch, default `false` |
190- | `ssl.onePanel.url` | ❌ | 1Panel URL (e.g. `http://localhost:10000`) |
191- | `ssl.onePanel.apiKey` | ❌ | 1Panel API key generated from panel settings |
192- | `log.maxSizeMB` | ❌ | Max size per log file, default `20` MB |
193- | `log.maxBackups` | ❌ | Max rotated log files to keep, default `5` |
194- | `log.maxAgeDays` | ❌ | Max age for rotated logs, default `30` days |
195- | `provider` | ❌ | Cloud provider config (Alibaba Cloud / Qiniu Cloud / Tencent Cloud) |
196-
197101## Troubleshooting
198102
199103### HTTP-01 validation failed
0 commit comments