Advertisement
Guest User

Untitled

a guest
Feb 24th, 2013
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. user www-data;
  2. worker_processes 8;
  3. worker_rlimit_nofile 8192;
  4. pid /var/run/nginx.pid;
  5.  
  6. events {
  7. worker_connections 2048;
  8. use epoll;
  9. multi_accept on;
  10. }
  11.  
  12. http {
  13.  
  14. sendfile on;
  15. tcp_nopush on;
  16. tcp_nodelay on;
  17. keepalive_timeout 65;
  18.  
  19. include /etc/nginx/mime.types;
  20. default_type application/octet-stream;
  21.  
  22. access_log /var/log/nginx/access.log;
  23. error_log /var/log/nginx/error.log;
  24.  
  25.  
  26. include /etc/nginx/conf.d/*.conf;
  27. include /etc/nginx/sites-enabled/*;
  28. }
  29.  
  30. upstream sdn_api{
  31. server unix:/tmp/gunicorn.sock;
  32. }
  33.  
  34. server {
  35. listen 443 ssl default_server;
  36.  
  37. ssl on;
  38. ssl_certificate /etc/ssl/certs/api.sdninja.com.crt;
  39. ssl_certificate_key /etc/ssl/private/api.sdninja.com.key;
  40. ssl_ciphers RC4:HIGH:!kEDH:!aNULL:!MD5:!EXP;
  41. ssl_prefer_server_ciphers on;
  42. ssl_session_cache shared:SSL:10m;
  43.  
  44. server_name api.*****.com;
  45. access_log /var/log/nginx/sdn_api.log;
  46.  
  47. location / {
  48. proxy_pass http://sdn_api;
  49. }
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement