Skip to content

Commit

Permalink
chore: 完善compose
Browse files Browse the repository at this point in the history
  • Loading branch information
lms committed Mar 20, 2024
1 parent 712f740 commit 3025c7a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
12 changes: 7 additions & 5 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ services:
platform: linux/amd64
image: hub.hitosea.com/cossim/hipush
volumes:
- ./config.yaml:/config/config.yaml
# 如果启用了ios推送,需要将推送证书挂载到容器中
#- ./AuthKey_xxx.p8:/config/key/AuthKey_xxx.p8
- ./config/config.yaml:/config/config.yaml
# If iOS push is enabled, mount the push certificate into the container, consistent with the iso key_path
- /Users/lms/Downloads/AuthKey_UU2D9Z4ANF.p8:/config/key/AuthKey_xxx.p8
# If Android push is enabled, mount the AccountKey.json into the container, consistent with the android key_path
- /Users/lms/Downloads/cossim-5a21a-firebase-adminsdk-atk43-5a6cdebc4e.json:/config/key/AccountKey.json
command: -config /config/config.yaml
ports:
- "7070:7070"
- "7071:7071"
- "8080:7070"
- "8081:7071"
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ require (
github.com/go-logr/logr v1.4.1
github.com/go-logr/zapr v1.3.0
github.com/golang/protobuf v1.5.4
github.com/google/uuid v1.6.0
github.com/mitchellh/mapstructure v1.5.0
github.com/sideshow/apns2 v0.23.0
github.com/thoas/stats v0.0.0-20190407194641-965cb2de1678
Expand Down Expand Up @@ -48,7 +49,6 @@ require (
github.com/golang-jwt/jwt/v4 v4.4.1 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/google/s2a-go v0.1.7 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect
github.com/googleapis/gax-go/v2 v2.12.2 // indirect
github.com/jonboulle/clockwork v0.4.0 // indirect
Expand Down
7 changes: 0 additions & 7 deletions pkg/push/xiaomi_push.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,6 @@ func (x *XiaomiPushService) Send(ctx context.Context, request interface{}, opt .
return nil, err
}

marshal, err := json.Marshal(notification)
if err != nil {
return nil, err
}

fmt.Println("marshal => ", string(marshal))

var appid string
if req.AppID != "" {
appid = req.AppID
Expand Down

0 comments on commit 3025c7a

Please sign in to comment.