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