update readme.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
4a431243df
commit
d4942853c4
|
@ -48,6 +48,7 @@ A push notification micro server using [Gin](https://github.com/gin-gonic/gin) f
|
||||||
* Support store app stat to memory, [Redis](http://redis.io/) or [BoltDB](https://github.com/boltdb/bolt).
|
* Support store app stat to memory, [Redis](http://redis.io/) or [BoltDB](https://github.com/boltdb/bolt).
|
||||||
* Support `p12` or `pem` formtat of iOS certificate file.
|
* Support `p12` or `pem` formtat of iOS certificate file.
|
||||||
* Support `/sys/stats` show response time, status code count, etc.
|
* Support `/sys/stats` show response time, status code count, etc.
|
||||||
|
* Support for HTTP proxy to Google server (GCM).
|
||||||
|
|
||||||
See the [YAML config example](config/config.yml):
|
See the [YAML config example](config/config.yml):
|
||||||
|
|
||||||
|
@ -61,6 +62,7 @@ core:
|
||||||
ssl: false
|
ssl: false
|
||||||
cert_path: "cert.pem"
|
cert_path: "cert.pem"
|
||||||
key_path: "key.pem"
|
key_path: "key.pem"
|
||||||
|
http_proxy: "" # only working for GCM server
|
||||||
|
|
||||||
api:
|
api:
|
||||||
push_uri: "/api/push"
|
push_uri: "/api/push"
|
||||||
|
@ -134,6 +136,7 @@ Server Options:
|
||||||
-c, --config <file> Configuration file
|
-c, --config <file> Configuration file
|
||||||
-m, --message <message> Notification message
|
-m, --message <message> Notification message
|
||||||
-t, --token <token> Notification token
|
-t, --token <token> Notification token
|
||||||
|
--proxy <proxy> Proxy URL (only for GCM)
|
||||||
iOS Options:
|
iOS Options:
|
||||||
-i, --key <file> certificate key file path
|
-i, --key <file> certificate key file path
|
||||||
-P, --password <password> certificate key password
|
-P, --password <password> certificate key password
|
||||||
|
@ -159,6 +162,7 @@ $ gorush -android -m="your message" -k="API Key" -t="Device token"
|
||||||
* `-m`: Notification message.
|
* `-m`: Notification message.
|
||||||
* `-k`: [Google cloud message](https://developers.google.com/cloud-messaging/) api key
|
* `-k`: [Google cloud message](https://developers.google.com/cloud-messaging/) api key
|
||||||
* `-t`: Device token.
|
* `-t`: Device token.
|
||||||
|
* `--proxy`: Set http proxy url. (only working for GCM)
|
||||||
|
|
||||||
### Send iOS notification
|
### Send iOS notification
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue