Tag Archives: nginx

Pro-tips for production server setup (when shit hits the roof)

This post is not related to production deployment automation. This post is our voice of experience (read as: major issues caused due by “minor” missing server configurations) and how we resolved them. These are changes that would help you in case you are … Continue reading

Posted in Case Studies | Tagged , , | Leave a comment

WebSocket over Nginx

How often do you find that the awesome movie seats you have painstakingly chosen for yourself, is suddenly not available when you proceed to pay for it. “Damn it! Just missed!” you say. Wouldn’t it be  great to be guaranteed … Continue reading

Posted in Ruby on Rails | Tagged , | 5 Comments

Setting up nginx maximum upload size

>Edit nginx configuration and look for html block.Inside html block add following line.http { include conf/mime.types; default_type application/octet-stream; client_max_body_size 10m; ….}In above configuration “application/octet-stream” supports any kind of file upload.

Posted in Ruby | Tagged | Leave a comment

Uploading multiple files with nginx upload module and upload progress bar

Uploading files ‘efficiently’ has also been a pain point in most apps. I finally got to experiment with: nginx upload module (http://www.grid.net.ru/nginx/upload.en.html) nginx upload progress module http://wiki.nginx.org/NginxHttpUploadProgressModule) and upload multiple files via paperclip. There are resources available for handing these … Continue reading

Posted in Ruby on Rails | Tagged , , | 34 Comments

nginx and thin installation and configuration

Install nginx server using following command apt-get install nginxEdit nginx configuration and add server block inside html block. server {    listen       80;    server_name  boost;     root /home/sandip/rails_app/public;     location / {        proxy_set_header  X-Real-IP  $remote_addr;       … Continue reading

Posted in Ruby on Rails | Tagged , , | 2 Comments

nginx passenger configuration for rails application

#user  nobody;user www-data;worker_processes  2; #error_log  logs/error.log;#error_log  logs/error.log  notice;#error_log  logs/error.log  info; #pid        logs/nginx.pid; events {    worker_connections  1024;} http {    passenger_root /var/lib/gems/1.8/gems/passenger-2.2.8;    passenger_ruby /usr/bin/ruby1.8;    passenger_max_pool_size 3;     include       mime.types; default_type  application/octet-stream;     #log_format  main  ‘$remote_addr – … Continue reading

Posted in Ruby on Rails | Tagged , , | 3 Comments

Capistrano + Nginx + Thin deployment on Linode

This was long lost post I had written about 8 months ago (converted from wiki to HTML – so pardon typos if any) Terminologies Capistrano is a ruby gem which helps in remote deployment. As against widely known convention, Capistrano … Continue reading

Posted in Ruby on Rails | Tagged , , , | 5 Comments