Advertisement
jjarokerpc

Nginx-Passenger Configuration for Puppet 2.7

Jul 12th, 2012
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.90 KB | None | 0 0
  1. #### nginx.conf file
  2. #### Configuration for Nginx-Passenger in front of Puppet Master 2.7.18
  3.  
  4. worker_processes 1;
  5.  
  6. error_log /var/log/nginx/error.log warn;
  7. pid /var/run/nginx.pid;
  8.  
  9. events {
  10. worker_connections 1024;
  11. }
  12.  
  13. http {
  14.  
  15. include /opt/nginx/conf/mime.types;
  16. default_type application/octet-stream;
  17.  
  18. log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  19. '$status $body_bytes_sent "$http_referer" '
  20. '"$http_user_agent" "$http_x_forwarded_for"';
  21.  
  22. access_log /var/log/nginx/access.log main;
  23.  
  24. sendfile on;
  25. tcp_nopush on;
  26.  
  27. # KeepAlive
  28. keepalive_timeout 65;
  29. tcp_nodelay on;
  30.  
  31. # Passenger needed for puppet
  32. passenger_root /var/lib/gems/1.8/gems/passenger-3.0.13;
  33. passenger_ruby /usr/bin/ruby;
  34. passenger_use_global_queue on;
  35. passenger_max_pool_size 15;
  36. passenger_pool_idle_time 300;
  37.  
  38.  
  39. server {
  40.  
  41. listen 8140 ssl;
  42. server_name puppet.example.org;
  43.  
  44. access_log /var/log/nginx/puppetmaster.access.log;
  45. error_log /var/log/nginx/puppetmaster.error.log;
  46.  
  47. root /etc/puppet/rack/public;
  48.  
  49. passenger_enabled on;
  50. passenger_set_cgi_param HTTP_X_CLIENT_DN $ssl_client_s_dn;
  51. passenger_set_cgi_param HTTP_X_CLIENT_VERIFY $ssl_client_verify;
  52.  
  53. ssl_certificate /var/lib/puppet/ssl/certs/puppet.example.org.pem;
  54. ssl_certificate_key /var/lib/puppet/ssl/private_keys/puppet.example.org.pem;
  55. ssl_crl /var/lib/puppet/ssl/ca/ca_crl.pem;
  56. ssl_client_certificate /var/lib/puppet/ssl/certs/ca.pem;
  57. ssl_ciphers SSLv2:-LOW:-EXPORT:RC4+RSA;
  58. ssl_prefer_server_ciphers on;
  59. ssl_verify_client optional;
  60. ssl_verify_depth 1;
  61. ssl_session_cache shared:SSL:128m;
  62. ssl_session_timeout 5m;
  63.  
  64. }
  65.  
  66. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement