Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a367585ab4 | ||
|
|
5362371bda | ||
|
|
35e1bfcd7f | ||
|
|
24df7913fe | ||
|
|
22d3aeb7b5 |
17
README.md
17
README.md
@@ -92,15 +92,13 @@ make local.run
|
|||||||
|
|
||||||
## 四、系统截图
|
## 四、系统截图
|
||||||
|
|
||||||

|
<div align="center">
|
||||||
|
<img src="https://i.imgur.com/SYjjbql.jpeg" title="Login page" width="95%"/>
|
||||||

|
<img src="https://i.imgur.com/WMVbBId.jpeg" title="Dashboard page" width="47%"/>
|
||||||
|
<img src="https://i.imgur.com/8wit3ZA.jpeg" title="Domains page" width="47%"/>
|
||||||

|
<img src="https://i.imgur.com/EWtOoJ0.jpeg" title="Accesses page" width="47%"/>
|
||||||
|
<img src="https://i.imgur.com/aaPtSW7.jpeg" title="History page" width="47%"/>
|
||||||

|
</div>
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
## 五、概念
|
## 五、概念
|
||||||
|
|
||||||
@@ -190,3 +188,4 @@ Certimate 是一个免费且开源的项目,采用 [MIT 开源协议](LICENSE.
|
|||||||
## 十、Star 趋势图
|
## 十、Star 趋势图
|
||||||
|
|
||||||
[](https://starchart.cc/usual2970/certimate)
|
[](https://starchart.cc/usual2970/certimate)
|
||||||
|
|
||||||
|
|||||||
16
README_EN.md
16
README_EN.md
@@ -91,15 +91,13 @@ password:1234567890
|
|||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||
|
|
||||||

|
<div align="center">
|
||||||
|
<img src="https://i.imgur.com/SYjjbql.jpeg" title="Login page" width="95%"/>
|
||||||

|
<img src="https://i.imgur.com/WMVbBId.jpeg" title="Dashboard page" width="47%"/>
|
||||||
|
<img src="https://i.imgur.com/8wit3ZA.jpeg" title="Domains page" width="47%"/>
|
||||||

|
<img src="https://i.imgur.com/EWtOoJ0.jpeg" title="Accesses page" width="47%"/>
|
||||||
|
<img src="https://i.imgur.com/aaPtSW7.jpeg" title="History page" width="47%"/>
|
||||||

|
</div>
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
## Concepts
|
## Concepts
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"strings"
|
||||||
|
|
||||||
aliyunAlb "github.com/alibabacloud-go/alb-20200616/v2/client"
|
aliyunAlb "github.com/alibabacloud-go/alb-20200616/v2/client"
|
||||||
aliyunOpen "github.com/alibabacloud-go/darabonba-openapi/v2/client"
|
aliyunOpen "github.com/alibabacloud-go/darabonba-openapi/v2/client"
|
||||||
@@ -39,10 +40,21 @@ func NewAliyunALBDeployer(option *DeployerOption) (Deployer, error) {
|
|||||||
return nil, xerrors.Wrap(err, "failed to create sdk client")
|
return nil, xerrors.Wrap(err, "failed to create sdk client")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
aliCasRegion := option.DeployConfig.GetConfigAsString("region")
|
||||||
|
if aliCasRegion != "" {
|
||||||
|
// 阿里云 CAS 服务接入点是独立于 ALB 服务的
|
||||||
|
// 国内版接入点:华东一杭州
|
||||||
|
// 国际版接入点:亚太东南一新加坡
|
||||||
|
if !strings.HasPrefix(aliCasRegion, "cn-") {
|
||||||
|
aliCasRegion = "ap-southeast-1"
|
||||||
|
} else {
|
||||||
|
aliCasRegion = "cn-hangzhou"
|
||||||
|
}
|
||||||
|
}
|
||||||
uploader, err := uploaderAliyunCas.New(&uploaderAliyunCas.AliyunCASUploaderConfig{
|
uploader, err := uploaderAliyunCas.New(&uploaderAliyunCas.AliyunCASUploaderConfig{
|
||||||
AccessKeyId: access.AccessKeyId,
|
AccessKeyId: access.AccessKeyId,
|
||||||
AccessKeySecret: access.AccessKeySecret,
|
AccessKeySecret: access.AccessKeySecret,
|
||||||
Region: option.DeployConfig.GetConfigAsString("region"),
|
Region: aliCasRegion,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, xerrors.Wrap(err, "failed to create ssl uploader")
|
return nil, xerrors.Wrap(err, "failed to create ssl uploader")
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"strings"
|
||||||
|
|
||||||
aliyunOpen "github.com/alibabacloud-go/darabonba-openapi/v2/client"
|
aliyunOpen "github.com/alibabacloud-go/darabonba-openapi/v2/client"
|
||||||
aliyunNlb "github.com/alibabacloud-go/nlb-20220430/v2/client"
|
aliyunNlb "github.com/alibabacloud-go/nlb-20220430/v2/client"
|
||||||
@@ -39,10 +40,21 @@ func NewAliyunNLBDeployer(option *DeployerOption) (Deployer, error) {
|
|||||||
return nil, xerrors.Wrap(err, "failed to create sdk client")
|
return nil, xerrors.Wrap(err, "failed to create sdk client")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
aliCasRegion := option.DeployConfig.GetConfigAsString("region")
|
||||||
|
if aliCasRegion != "" {
|
||||||
|
// 阿里云 CAS 服务接入点是独立于 NLB 服务的
|
||||||
|
// 国内版接入点:华东一杭州
|
||||||
|
// 国际版接入点:亚太东南一新加坡
|
||||||
|
if !strings.HasPrefix(aliCasRegion, "cn-") {
|
||||||
|
aliCasRegion = "ap-southeast-1"
|
||||||
|
} else {
|
||||||
|
aliCasRegion = "cn-hangzhou"
|
||||||
|
}
|
||||||
|
}
|
||||||
uploader, err := uploaderAliyunCas.New(&uploaderAliyunCas.AliyunCASUploaderConfig{
|
uploader, err := uploaderAliyunCas.New(&uploaderAliyunCas.AliyunCASUploaderConfig{
|
||||||
AccessKeyId: access.AccessKeyId,
|
AccessKeyId: access.AccessKeyId,
|
||||||
AccessKeySecret: access.AccessKeySecret,
|
AccessKeySecret: access.AccessKeySecret,
|
||||||
Region: option.DeployConfig.GetConfigAsString("region"),
|
Region: aliCasRegion,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, xerrors.Wrap(err, "failed to create ssl uploader")
|
return nil, xerrors.Wrap(err, "failed to create ssl uploader")
|
||||||
|
|||||||
@@ -70,8 +70,6 @@ func (d *TencentCLBDeployer) GetInfos() []string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (d *TencentCLBDeployer) Deploy(ctx context.Context) error {
|
func (d *TencentCLBDeployer) Deploy(ctx context.Context) error {
|
||||||
// TODO: 直接部署方式
|
|
||||||
|
|
||||||
switch d.option.DeployConfig.GetConfigAsString("resourceType") {
|
switch d.option.DeployConfig.GetConfigAsString("resourceType") {
|
||||||
case "ssl-deploy":
|
case "ssl-deploy":
|
||||||
// 通过 SSL 服务部署到云资源实例
|
// 通过 SSL 服务部署到云资源实例
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
export const version = "Certimate v0.2.17";
|
export const version = "Certimate v0.2.18";
|
||||||
|
|||||||
Reference in New Issue
Block a user