Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minimum required pushpin.conf? #47687

Open
aleclarson opened this issue Jul 26, 2020 · 4 comments
Open

Minimum required pushpin.conf? #47687

aleclarson opened this issue Jul 26, 2020 · 4 comments

Comments

@aleclarson
Copy link

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
Copy link
Author

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
Copy link
Author

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

Is there a way to extend the example config?

@jkarneges
Copy link
Member

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.

@aleclarson
Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants