Commit Graph

885 Commits

Author SHA1 Message Date
Bo-Yi Wu 0c89fd1d81
feat(ios): Support iOS 12 Critical Alerts (#367)
fix https://github.com/appleboy/gorush/issues/366
2018-08-28 11:02:13 +08:00
Bo-Yi Wu 880752d88c feat(vendor): update go-fcm package. 2018-08-23 22:15:30 +08:00
Bo-Yi Wu b4daa36890 fix: embedmd check 2018-08-15 15:07:08 +08:00
Bo-Yi Wu 4f0f9f95a9 chore(config): check error from load yaml config. 2018-08-15 14:56:52 +08:00
Bo-Yi Wu 24871e0ba9 fix: comment coverage check 2018-08-15 14:38:13 +08:00
Eduard Pelesh bf97ca59ec Added mutable_content option for Firebase (#364)
It is now possible to send `mutable_content` option to Firebase which gets forwarded as `mutable-content` option for APNS.

A link to official documentation is: https://firebase.google.com/docs/cloud-messaging/http-server-ref#mutable_content
2018-08-15 11:47:15 +08:00
Stefan Arentz 437092c697 Also build OpenBSD binaries (#362)
This patch simply adds `openbsd` to `TARGETS`. This is a supported Go architecture and the result will be binaries that can be run on 32 or 64-bit OpenBSD.

This project is hard to build on OpenBSD because it depends on some Linux-isms like *GNU Make* and specific `find` options. So it will be nice to have binaries easily available.
2018-07-16 10:20:45 +08:00
Bo-Yi Wu 014aa2a2ac fix: Provide a password using STDIN 2018-06-27 12:03:44 +08:00
Bo-Yi Wu 5d5127b690
feat: support install from homebrew (#360)
* feat: support install from homebrew

* docs: add readme.
2018-06-27 09:28:27 +08:00
sysradium bcf18d662a Set IOS key_path to an empty string (#359)
At the moment you can't start gorush with IOS base64 certificate provided using an ENV var. 

Apparently viper uses default value for the configuration field even if you set env var to an empty string. So `if var is not set` or `is set and string is empty` => default value.

Which means that if I only use env vars for configuration and I want to use IOS certificate in base64 I can not set `cert_path` to an empty string, so `gorush` uses base64 cert:

https://github.com/appleboy/gorush/blob/master/gorush/notification.go#L180

I.e.:
```
ORUSH_IOS_ENABLED=true GORUSH_IOS_KEY_PATH="" GORUSH_IOS_KEY_TYPE=p12  GORUSH_IOS_KEY_BASE64="SOME_BASE64" go run main.go
(config.SectionIos) {
 Enabled: (bool) true,
 KeyPath: (string) (len=7) "key.pem", <--- still key.pem
 KeyBase64: (string) (len=2) "SOME_BASE64",
 KeyType: (string) (len=3) "p12",
 Password: (string) "",
 Production: (bool) false,
 MaxRetry: (int) 0,
 KeyID: (string) "",
 TeamID: (string) ""
}
FATA[2018/06/10 - 12:42:09] certificate file does not exist
```
So by default `KeyPath` should an empty string. Then I can set only if I want.
2018-06-20 09:34:49 +08:00
Bo-Yi Wu 251429530d chore(CI): add when in testing 2018-05-22 15:32:44 +08:00
Bo-Yi Wu a8994a5110
fix(debug): show error message. (#356) 2018-05-22 10:19:13 +08:00
Bo-Yi Wu 1b2a418ad3 revert
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2018-05-21 11:27:57 +08:00
Bo-Yi Wu add4afd56f update golang version
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2018-05-21 10:53:49 +08:00
Bo-Yi Wu f6c465e2e1 docs: update doc 2018-05-21 10:21:59 +08:00
Bo-Yi Wu 0adf7b7f1f chore(drone): update golang version 2018-05-21 10:01:54 +08:00
Bo-Yi Wu b94a538d7b chore: upgrade apns2 version 2018-05-21 10:01:00 +08:00
Bo-Yi Wu 672ac28d8f
chore(coverage): update coverage command. (#354)
* chore(coverage): update coverage command.

* update

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2018-04-22 09:17:16 +08:00
Bo-Yi Wu ffa8eb12b3
feat: Add badgerDB support. (#353)
See https://github.com/dgraph-io/badger
Slide: https://github.com/gopherchina/conference/blob/master/2018/1.5%20Badger_%20Fast%20Key-Value%20DB%20in%20Go.pdf
2018-04-16 17:26:15 +08:00
Bo-Yi Wu 069efa9e5e test: add doc for testing gorush 2018-04-11 10:46:31 +08:00
Bo-Yi Wu e96811ae63
chore: return success for rpc response. (#350) 2018-04-11 10:14:28 +08:00
Bo-Yi Wu fea79dd14a fix: typo in header. 2018-03-22 20:41:00 +08:00
Bo-Yi Wu b3bdd9b79e
feat(docker): test a container to check that it is still working (#346) 2018-03-17 23:07:38 +08:00
Bo-Yi Wu 86630e0fc7 docs: Add appveyor badge [ci skip] 2018-03-13 09:14:16 +08:00
Bo-Yi Wu 1fed4afaf9 update gitignore
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2018-03-12 22:51:42 +08:00
Bo-Yi Wu 2043c6b65b fix: windows path. 2018-03-12 22:51:42 +08:00
Bo-Yi Wu 3c9e1fc397 fix: windows path. 2018-03-12 16:46:34 +08:00
Bo-Yi Wu c959b6ff2d fix: windows exe path. 2018-03-12 16:38:18 +08:00
Bo-Yi Wu 023c255fe1 docs: Add buymeacoffee 2018-03-05 17:10:07 +08:00
Bo-Yi Wu 60e3ed3ca4 docs: update some description. 2018-02-20 13:20:57 +08:00
Bo-Yi Wu a0de376b7a chore: upgrade golang to 1.10.0 2018-02-19 14:37:23 +08:00
Bo-Yi Wu 39c15eef1a fix: remove windows exe from docker ignore. 2018-02-19 02:00:39 +08:00
Bo-Yi Wu 4b65eadc1e
feat(windows): support windows container. (#339) 2018-02-18 23:46:11 +08:00
Bo-Yi Wu 398b77744c
feat(https): support load certificate from base64 input. (#337) 2018-02-18 17:43:34 +08:00
Bo-Yi Wu 2d2f62d19b
feat(iOS): load iOS key from base64 input. (#336)
* feat(iOS): load iOS key from base64 input.

* test: check key type exist.
2018-02-18 17:12:51 +08:00
Bo-Yi Wu c3167f77f3 refactor: upgrade golang to 1.9.4 2018-02-17 20:06:37 +08:00
Bo-Yi Wu adbcff42b9 chore: update go to 1.9.3 2018-02-05 17:08:43 +08:00
Bo-Yi Wu 2e39ba4fb5 docs: support running in k8s or aws lambda. 2018-01-24 09:26:58 +08:00
Bo-Yi Wu b0b22022e9 docs: add aws lambda png 2018-01-24 09:22:51 +08:00
Bo-Yi Wu 34b3e6c597 docs: Run gorush in AWS Lambda 2018-01-23 16:48:37 +08:00
Bo-Yi Wu d7ce3c077c
feat(aws): support lambda (#334) 2018-01-23 16:34:34 +08:00
Bo-Yi Wu b0260af17b
feat(grcp): support MutableContent for ios (#332) 2018-01-16 11:26:45 +08:00
Bo-Yi Wu 4c203c9829
feat(grpc): support ThreadID and ContentAvailable (#328) 2018-01-10 09:36:27 +08:00
Bo-Yi Wu ffd78ffaec
feat(grpc): add alert other fields. (#327) 2018-01-06 15:03:21 +08:00
Bo-Yi Wu 230cfb23fa
feat: Add ThreadID for apns (#326) 2018-01-05 17:08:43 +08:00
Bo-Yi Wu 6540d16e3e refactor: update makefile command. 2018-01-04 16:32:50 +08:00
Bo-Yi Wu df45f85a1c
chore(grpc): add sound field. (#325) 2018-01-04 11:31:03 +08:00
Bo-Yi Wu 651a2b76db
fix(grpc): check alert exist. (#324)
* fix(grpc): check alert exist.

* fix: update readme.
2018-01-03 17:08:28 +08:00
Bo-Yi Wu 3b30bb6346 fix: missing grpc tool for node.js 2018-01-02 22:33:42 +08:00
Bo-Yi Wu 8faae762fe
feat(grpc): support category, alert and badge for ios. (#321) 2018-01-02 15:53:15 +08:00