2016-03-27 05:33:48 +00:00
|
|
|
core:
|
2017-07-27 03:19:36 +00:00
|
|
|
enabled: true # enabale httpd server
|
2017-07-31 08:37:56 +00:00
|
|
|
address: "" # ip address to bind (default: any)
|
2017-04-05 04:03:43 +00:00
|
|
|
port: "8088" # ignore this port number if auto_tls is enabled (listen 443).
|
2017-02-25 12:31:49 +00:00
|
|
|
worker_num: 0 # default worker number is runtime.NumCPU()
|
|
|
|
queue_num: 0 # default queue number is 8192
|
2016-04-10 05:06:34 +00:00
|
|
|
max_notification: 100
|
2017-04-12 02:59:40 +00:00
|
|
|
sync: false # set true if you need get error message from fail push notification in API response.
|
2016-04-01 01:53:10 +00:00
|
|
|
mode: "release"
|
2016-03-28 06:40:48 +00:00
|
|
|
ssl: false
|
|
|
|
cert_path: "cert.pem"
|
|
|
|
key_path: "key.pem"
|
2017-06-01 03:56:10 +00:00
|
|
|
http_proxy: "" # only working for FCM server
|
2016-08-19 13:16:10 +00:00
|
|
|
pid:
|
|
|
|
enabled: false
|
|
|
|
path: "gorush.pid"
|
|
|
|
override: true
|
2017-04-05 04:03:43 +00:00
|
|
|
auto_tls:
|
|
|
|
enabled: false # Automatically install TLS certificates from Let's Encrypt.
|
|
|
|
folder: ".cache" # folder for storing TLS certificates
|
|
|
|
host: "" # which domains the Let's Encrypt will attempt
|
2016-03-27 05:33:48 +00:00
|
|
|
|
2017-07-24 10:58:30 +00:00
|
|
|
grpc:
|
2017-07-26 01:38:28 +00:00
|
|
|
enabled: false # enabale gRPC server
|
2017-10-19 01:24:47 +00:00
|
|
|
port: 9000
|
2017-07-24 10:58:30 +00:00
|
|
|
|
2016-03-27 05:33:48 +00:00
|
|
|
api:
|
|
|
|
push_uri: "/api/push"
|
2016-04-15 02:24:39 +00:00
|
|
|
stat_go_uri: "/api/stat/go"
|
|
|
|
stat_app_uri: "/api/stat/app"
|
2016-04-15 07:05:23 +00:00
|
|
|
config_uri: "/api/config"
|
2016-06-26 04:21:32 +00:00
|
|
|
sys_stat_uri: "/sys/stats"
|
2017-01-19 08:56:30 +00:00
|
|
|
metric_uri: "/metrics"
|
2016-03-27 05:33:48 +00:00
|
|
|
|
|
|
|
android:
|
2016-04-11 08:38:59 +00:00
|
|
|
enabled: true
|
|
|
|
apikey: "YOUR_API_KEY"
|
2017-02-25 12:31:49 +00:00
|
|
|
max_retry: 0 # resend fail notification, default value zero is disabled
|
2016-03-27 05:33:48 +00:00
|
|
|
|
|
|
|
ios:
|
2016-03-27 13:12:11 +00:00
|
|
|
enabled: false
|
2016-06-12 11:09:41 +00:00
|
|
|
key_path: "key.pem"
|
2017-02-25 12:31:49 +00:00
|
|
|
password: "" # certificate password, default as empty string.
|
2016-03-27 05:33:48 +00:00
|
|
|
production: false
|
2017-02-25 12:31:49 +00:00
|
|
|
max_retry: 0 # resend fail notification, default value zero is disabled
|
2016-04-05 05:15:47 +00:00
|
|
|
|
|
|
|
log:
|
2016-04-07 08:09:43 +00:00
|
|
|
format: "string" # string or json
|
2017-02-25 12:31:49 +00:00
|
|
|
access_log: "stdout" # stdout: output to console, or define log path like "log/access_log"
|
2016-04-05 05:15:47 +00:00
|
|
|
access_level: "debug"
|
2017-02-25 12:31:49 +00:00
|
|
|
error_log: "stderr" # stderr: output to console, or define log path like "log/error_log"
|
2016-04-05 05:15:47 +00:00
|
|
|
error_level: "error"
|
2016-05-16 13:04:05 +00:00
|
|
|
hide_token: true
|
2016-04-22 07:47:14 +00:00
|
|
|
|
|
|
|
stat:
|
2017-02-25 12:31:49 +00:00
|
|
|
engine: "memory" # support memory, redis, boltdb, buntdb or leveldb
|
2016-04-22 07:47:14 +00:00
|
|
|
redis:
|
|
|
|
addr: "localhost:6379"
|
|
|
|
password: ""
|
2016-04-22 09:54:00 +00:00
|
|
|
db: 0
|
2016-04-23 07:13:57 +00:00
|
|
|
boltdb:
|
2016-09-19 13:52:40 +00:00
|
|
|
path: "bolt.db"
|
2016-04-23 07:13:57 +00:00
|
|
|
bucket: "gorush"
|
2016-08-02 07:35:28 +00:00
|
|
|
buntdb:
|
2016-09-19 13:52:40 +00:00
|
|
|
path: "bunt.db"
|
2016-09-19 08:19:20 +00:00
|
|
|
leveldb:
|
2016-09-19 13:52:40 +00:00
|
|
|
path: "level.db"
|