|
| 1 | +[global] |
| 2 | +include={libdir}/internal.conf |
| 3 | + |
| 4 | +# directory to save runtime files |
| 5 | +rundir=%[1]s |
| 6 | + |
| 7 | +# prefix for zmq ipc specs |
| 8 | +ipc_prefix= |
| 9 | + |
| 10 | +# port offset for zmq tcp specs and http control server |
| 11 | +port_offset=0 |
| 12 | + |
| 13 | +# TTL (seconds) for connection stats |
| 14 | +stats_connection_ttl=120 |
| 15 | + |
| 16 | +# whether to send individual connection stats |
| 17 | +stats_connection_send=true |
| 18 | + |
| 19 | + |
| 20 | +[runner] |
| 21 | +# services to start |
| 22 | +services=connmgr,proxy,handler |
| 23 | + |
| 24 | +# plain HTTP port to listen on for client connections |
| 25 | +http_port=%[4]d |
| 26 | + |
| 27 | +# list of HTTPS ports to listen on for client connections (you must have certs set) |
| 28 | +#https_ports=443 |
| 29 | + |
| 30 | +# list of unix socket paths to listen on for client connections |
| 31 | +#local_ports={rundir}/{ipc_prefix}server |
| 32 | + |
| 33 | +# directory to save log files |
| 34 | +logdir=%[2]s |
| 35 | + |
| 36 | +# logging level. 2 = info, >2 = verbose |
| 37 | +log_level=2 |
| 38 | + |
| 39 | +# client full request header must fit in this buffer |
| 40 | +client_buffer_size=8192 |
| 41 | + |
| 42 | +# maximum number of client connections |
| 43 | +client_maxconn=50000 |
| 44 | + |
| 45 | +# whether connections can use compression |
| 46 | +allow_compression=false |
| 47 | + |
| 48 | +# paths |
| 49 | +# mongrel2_bin=mongrel2 |
| 50 | +# m2sh_bin=m2sh |
| 51 | +# zurl_bin=zurl |
| 52 | + |
| 53 | + |
| 54 | +[proxy] |
| 55 | +# routes config file (path relative to location of this file) |
| 56 | +routesfile=%[3]s |
| 57 | + |
| 58 | +# enable debug mode to get informative error responses |
| 59 | +debug=false |
| 60 | + |
| 61 | +# whether to use automatic CORS and JSON-P wrapping |
| 62 | +auto_cross_origin=false |
| 63 | + |
| 64 | +# whether to accept x-forwarded-proto |
| 65 | +accept_x_forwarded_protocol=false |
| 66 | + |
| 67 | +# whether to assert x-forwarded-proto |
| 68 | +set_x_forwarded_protocol=proto-only |
| 69 | + |
| 70 | +# how to treat x-forwarded-for. example: "truncate:0,append" |
| 71 | +x_forwarded_for= |
| 72 | + |
| 73 | +# how to treat x-forwarded-for if grip-signed |
| 74 | +x_forwarded_for_trusted= |
| 75 | + |
| 76 | +# the following headers must be marked in order to qualify as orig |
| 77 | +orig_headers_need_mark= |
| 78 | + |
| 79 | +# whether to accept Pushpin-Route header |
| 80 | +accept_pushpin_route=true |
| 81 | + |
| 82 | +# value to append to the CDN-Loop header |
| 83 | +cdn_loop= |
| 84 | + |
| 85 | +# include client IP address in logs |
| 86 | +log_from=false |
| 87 | + |
| 88 | +# include client user agent in logs |
| 89 | +log_user_agent=false |
| 90 | + |
| 91 | +# for signing proxied requests |
| 92 | +sig_iss=pushpin |
| 93 | + |
| 94 | +# for signing proxied requests. use "base64:" prefix for binary key |
| 95 | +sig_key=changeme |
| 96 | + |
| 97 | +# use this to allow grip to be forwarded upstream (e.g. to fanout.io) |
| 98 | +upstream_key= |
| 99 | + |
| 100 | +# for the sockjs iframe transport |
| 101 | +sockjs_url=http://cdn.jsdelivr.net/sockjs/0.3.4/sockjs.min.js |
| 102 | + |
| 103 | +# updates check has three modes: |
| 104 | +# report: check for new pushpin version and report anonymous usage info to |
| 105 | +# the pushpin developers |
| 106 | +# check: check for new pushpin version only, don't report anything |
| 107 | +# off: don't do any reporting or checking |
| 108 | +# pushpin will output a log message when a new version is available. report |
| 109 | +# mode helps the pushpin project build credibility, so please enable it if you |
| 110 | +# enjoy this software :) |
| 111 | +updates_check=report |
| 112 | + |
| 113 | +# use this field to identify your organization in updates requests. if left |
| 114 | +# blank, updates requests will be anonymous |
| 115 | +organization_name= |
| 116 | + |
| 117 | + |
| 118 | +[handler] |
| 119 | +# ipc permissions (octal) |
| 120 | +#ipc_file_mode=777 |
| 121 | + |
| 122 | +# bind PULL for receiving publish commands |
| 123 | +push_in_spec=tcp://127.0.0.1:%[6]d |
| 124 | + |
| 125 | +# list of bind SUB for receiving published messages |
| 126 | +push_in_sub_specs=tcp://127.0.0.1:%[7]d |
| 127 | + |
| 128 | +# whether the above SUB socket should connect instead of bind |
| 129 | +push_in_sub_connect=false |
| 130 | + |
| 131 | +# addr/port to listen on for receiving publish commands via HTTP |
| 132 | +push_in_http_addr=0.0.0.0 |
| 133 | +push_in_http_port=%[5]d |
| 134 | + |
| 135 | +# maximum headers and body size in bytes when receiving publish commands via HTTP |
| 136 | +push_in_http_max_headers_size=8192 |
| 137 | +push_in_http_max_body_size=65536 |
| 138 | + |
| 139 | +# bind PUB for sending stats (metrics, subscription info, etc) |
| 140 | +stats_spec=ipc://{rundir}/{ipc_prefix}stats |
| 141 | + |
| 142 | +# bind REP for responding to commands |
| 143 | +command_spec=tcp://127.0.0.1:%[8]d |
| 144 | + |
| 145 | +# max messages per second |
| 146 | +message_rate=2500 |
| 147 | + |
| 148 | +# max rate-limited messages |
| 149 | +message_hwm=25000 |
| 150 | + |
| 151 | +# set to report blocks counts in stats (content size / block size) |
| 152 | +#message_block_size= |
| 153 | + |
| 154 | +# max time (milliseconds) for out-of-order messages to wait |
| 155 | +message_wait=5000 |
| 156 | + |
| 157 | +# time (seconds) to cache message ids |
| 158 | +id_cache_ttl=60 |
| 159 | + |
| 160 | +# retry/recover sessions soon after the first subscription to a channel |
| 161 | +update_on_first_subscription=true |
| 162 | + |
| 163 | +# max subscriptions per connection |
| 164 | +connection_subscription_max=20 |
| 165 | + |
| 166 | +# time (seconds) to linger response mode subscriptions |
| 167 | +subscription_linger=60 |
| 168 | + |
| 169 | +# TTL (seconds) for subscription stats |
| 170 | +stats_subscription_ttl=60 |
| 171 | + |
| 172 | +# interval (seconds) to send report stats |
| 173 | +stats_report_interval=10 |
| 174 | + |
| 175 | +# stats output format |
| 176 | +stats_format=tnetstring |
0 commit comments