作者 陈志颖

feat:启用https

... ... @@ -11,7 +11,7 @@ ENV GO111MODULE on
ENV GOPROXY https://goproxy.cn,direct
RUN ["go","mod","tidy"]
RUN ["go","build"]
EXPOSE 8082
EXPOSE 8082 443
ENTRYPOINT ["./partner"]
#############################
... ...
... ... @@ -2,6 +2,12 @@ appname = partner
runmode = "${RUN_MODE||dev}"
httpport = "${HTTP_PORT||8082}"
#开启https
EnableHTTPS = true
HTTPSPort = "443"
HTTPSCertFile = "conf/_.fjmaimaimai.com_bundle.crt"
HTTPSKeyFile = "conf/_.fjmaimaimai.com.key"
#开启监控
EnableAdmin = false
#开启JSON请求
... ...
... ... @@ -10,6 +10,9 @@ spec:
- name: "http"
port: 80
targetPort: 8082
- name: "https"
port: 443
targetPort: 443
selector:
k8s-app: mmmpartner
---
... ... @@ -48,6 +51,7 @@ spec:
imagePullPolicy: Always
ports:
- containerPort: 8082
- containerPort: 443
volumeMounts:
- mountPath: /opt/logs
name: accesslogs
... ...
... ... @@ -10,6 +10,9 @@ spec:
- name: "http"
port: 80
targetPort: 8082
- name: "https"
port: 443
targetPort: 443
selector:
k8s-app: partner
---
... ... @@ -48,6 +51,7 @@ spec:
imagePullPolicy: Always
ports:
- containerPort: 8082
- containerPort: 443
volumeMounts:
- mountPath: /opt/logs
name: accesslogs
... ...
... ... @@ -10,6 +10,9 @@ spec:
- name: "http"
port: 80
targetPort: 8082
- name: "https"
port: 443
targetPort: 443
selector:
k8s-app: mmmpartner
---
... ... @@ -48,6 +51,7 @@ spec:
imagePullPolicy: Always
ports:
- containerPort: 8082
- containerPort: 443
volumeMounts:
- mountPath: /opt/logs
name: accesslogs
... ...
version: v1
kind: Attribute
metadata:
name: companyId
description: 公司id
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: deliveryCode
description: 交货编号
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: orderCode
description: 订单编号
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: orderType
description: 公司id
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: partnerId
description: 订单对应的合伙人
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: salesmanBonusPercent
description: 业务员抽成比例
type:
primitive: float64
... ...