Smart-proxy nginx & passenger

Anyone have a working configuration that I can template/use for running smart-proxy via nginx & passenger? (I can probably figure one out if I have to).

··· -- Craig White ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ craig.white@ttiltd.com 1.800.869.6908 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ www.ttiassessments.com

Register Now!
TTI Winners’ Conference 2013
January 20th - 22nd
The Earlier You Register the More FREE Product You Receive
Click here for more information!

> Anyone have a working configuration that I can template/use for running
> smart-proxy via nginx & passenger? (I can probably figure one out if I have
> to).
>

we recently added to the proxy a config.ru which make it run just like any
other rack app (e.g. puppetmaster).

grab one of the nightly smart proxy package, and you should be fine.

Ohad

··· On Wed, Sep 19, 2012 at 7:18 PM, Craig White wrote:


Craig White ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
craig.white@ttiltd.com
1.800.869.6908 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
www.ttiassessments.com

Register Now!
TTI Winners’ Conference 2013
January 20th - 22nd
The Earlier You Register the More FREE Product You Receive
Click here for more information!


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.

I dl'd the development code which indeed had config.ru and I noticed it was a sinatra app which was rather simple so I just added a little basic server to my foreman.conf for nginx/passenger and it seems to work fine. Struggled a bit with some other things that I finally resolved and will probably put into a new thread when I get some time.

server {
server_name puppet-test.local puppet-test;
listen 8142;
root /var/www/foreman/public;
passenger_enabled on;
passenger_min_instances 1;
rails_env production;
rails_spawn_method smart;
passenger_user puppet;
passenger_use_global_queue off;

error_log  logs/foreman_error.log error;
access_log logs/foreman_access.log combined;

ssl on;
ssl_certificate         /etc/puppet/ssl/certs/puppet-test.local.pem;
ssl_certificate_key     /etc/puppet/ssl/private_keys/puppet-test.local.pem;
ssl_crl                 /etc/puppet/ssl/ca/ca_crl.pem;
ssl_session_timeout 5m;
ssl_protocols SSLv3 TLSv1;
ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:!kEDH:+EXP:-SSLv2;
ssl_prefer_server_ciphers on;
ssl_verify_client off;
ssl_verify_depth 1;
ssl_session_cache builtin:1000 shared:SSL:10m;

}

passenger_pre_start https://puppet-test.local:8142/;

server {
server_name smart-proxy;
listen 8443;
root /var/www/smart-proxy/public;
client_max_body_size 2M;
passenger_enabled on;
passenger_use_global_queue on;
rails_env production;
}

Thanks

Craig

··· On Sep 19, 2012, at 11:49 AM, Ohad Levy wrote:

On Wed, Sep 19, 2012 at 7:18 PM, Craig White craig.white@ttiltd.com wrote:
Anyone have a working configuration that I can template/use for running smart-proxy via nginx & passenger? (I can probably figure one out if I have to).

we recently added to the proxy a config.ru which make it run just like any other rack app (e.g. puppetmaster).

grab one of the nightly smart proxy package, and you should be fine.

Ohad


Craig White ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ craig.white@ttiltd.com
1.800.869.6908 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ www.ttiassessments.com

Register Now!
TTI Winners’ Conference 2013
January 20th - 22nd
The Earlier You Register the More FREE Product You Receive
Click here for more information!


You received this message because you are subscribed to the Google Groups “Foreman users” group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to foreman-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/foreman-users?hl=en.


You received this message because you are subscribed to the Google Groups “Foreman users” group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to foreman-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/foreman-users?hl=en.


Craig White ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ craig.white@ttiltd.com
1.800.869.6908 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ www.ttiassessments.com

Register Now!
TTI Winners’ Conference 2013
January 20th - 22nd
The Earlier You Register the More FREE Product You Receive
Click here for more information!