2016-03-27 05:33:48 +00:00
|
|
|
core:
|
2020-04-05 08:48:39 +00:00
|
|
|
enabled: true # enable httpd server
|
2017-07-31 08:37:56 +00:00
|
|
|
address: "" # ip address to bind (default: any)
|
2020-02-05 15:23:16 +00:00
|
|
|
shutdown_timeout: 30 # default is 30 second
|
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.
|
2019-09-06 07:48:42 +00:00
|
|
|
feedback_hook_url: "" # set a hook url if you need get error message asynchronously from fail push notification in API response.
|
2020-02-24 14:18:50 +00:00
|
|
|
feedback_timeout: 10 # default is 10 second
|
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"
|
2018-02-18 09:12:51 +00:00
|
|
|
cert_base64: ""
|
|
|
|
key_base64: ""
|
2019-12-07 23:30:24 +00:00
|
|
|
http_proxy: ""
|
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:
|
2020-04-05 08:48:39 +00:00
|
|
|
enabled: false # enable 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"
|
2017-10-26 02:19:58 +00:00
|
|
|
health_uri: "/healthz"
|
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
|
|
|
|
2020-09-04 03:01:21 +00:00
|
|
|
huawei:
|
2021-07-16 03:51:34 +00:00
|
|
|
enabled: false
|
2021-03-28 14:13:02 +00:00
|
|
|
appsecret: "YOUR_APP_SECRET"
|
2020-09-04 03:01:21 +00:00
|
|
|
appid: "YOUR_APP_ID"
|
|
|
|
max_retry: 0 # resend fail notification, default value zero is disabled
|
|
|
|
|
2021-07-17 12:14:19 +00:00
|
|
|
queue:
|
2021-08-01 13:06:47 +00:00
|
|
|
engine: "local" # support "local", "nsq" and "nats " default value is "local"
|
2021-07-17 12:14:19 +00:00
|
|
|
nsq:
|
|
|
|
addr: 127.0.0.1:4150
|
|
|
|
topic: gorush
|
2021-08-01 13:06:47 +00:00
|
|
|
channel: gorush
|
|
|
|
nats:
|
|
|
|
addr: 127.0.0.1:4222
|
|
|
|
subj: gorush
|
|
|
|
queue: gorush
|
2021-07-17 12:14:19 +00:00
|
|
|
|
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"
|
2018-02-18 09:12:51 +00:00
|
|
|
key_base64: "" # load iOS key from base64 input
|
|
|
|
key_type: "pem" # could be pem, p12 or p8 type
|
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
|
2020-04-23 13:02:53 +00:00
|
|
|
max_concurrent_pushes: 100 # just for push ios notification
|
2017-02-25 12:31:49 +00:00
|
|
|
max_retry: 0 # resend fail notification, default value zero is disabled
|
2017-10-25 08:49:23 +00:00
|
|
|
key_id: "" # KeyID from developer account (Certificates, Identifiers & Profiles -> Keys)
|
|
|
|
team_id: "" # TeamID from developer account (View Account -> Membership)
|
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:
|
2021-09-20 12:00:20 +00:00
|
|
|
cluster: false
|
|
|
|
addr: "localhost:6379" # if cluster is true, you may set this to "localhost:6379,localhost:6380,localhost:6381"
|
2016-04-22 07:47:14 +00:00
|
|
|
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"
|
2020-04-23 02:34:35 +00:00
|
|
|
badgerdb:
|
|
|
|
path: "badger.db"
|