pushpin icon indicating copy to clipboard operation
pushpin copied to clipboard

Minimum required pushpin.conf?

Open aleclarson opened this issue 5 years ago • 4 comments

I'm binding a host directory to /etc/pushpin with a custom pushpin.conf and I'm wondering which settings are required for Pushpin to work as expected. With a setup like this..

[global]
include={libdir}/internal.conf
[proxy]
sig_key=changeme

..I'm seeing the following crash on startup with these logs..

[INFO] 2020-07-26 21:22:23.304 starting...
[INFO] 2020-07-26 21:22:23.309 using config: /etc/pushpin/pushpin.conf
[WARN] 2020-07-26 21:22:23.331 rundir in [runner] section is deprecated. put in [global]
[ERR] 2020-07-26 21:22:23.332 no mongrel2 ports configured

aleclarson avatar Jul 26 '20 21:07 aleclarson

Okay, thanks to the example pushpin.conf, I think I've got it:

[global]
include={libdir}/internal.conf
[runner]
services=mongrel2,m2adapter,zurl,pushpin-proxy,pushpin-handler
http_port=7999
[proxy]
sig_key=changeme

aleclarson avatar Jul 26 '20 21:07 aleclarson

Hmm, nevermind, still having trouble, but at least no crashing on startup.

Is there a way to extend the example config?

aleclarson avatar Jul 26 '20 21:07 aleclarson

You probably need some [handler] config for the internal ports to listen on.

There isn't a way to extend the example config, but you could perhaps start from it and keep taking away options until you have the most minimal config that would work.

jkarneges avatar Jul 27 '20 16:07 jkarneges

I ended up copying the example config and editing that.

Ideally, I could do the following:

[proxy]
sig_key=changeme

..and it would work. Maybe some saner defaults are in order?

aleclarson avatar Jul 28 '20 23:07 aleclarson