31 lines
784 B
Nginx Configuration File
Executable File
31 lines
784 B
Nginx Configuration File
Executable File
pid /var/run/nginx.pid;
|
|
|
|
events {
|
|
use epoll;
|
|
worker_connections 1024;
|
|
}
|
|
|
|
http {
|
|
passenger_root /usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.9;
|
|
passenger_ruby /usr/local/rvm/wrappers/default/ruby;
|
|
passenger_user_switching on;
|
|
passenger_default_user danbooru;
|
|
rails_spawn_method smart;
|
|
passenger_max_pool_size 3;
|
|
|
|
include mime.types;
|
|
default_type application/octet-stream;
|
|
|
|
sendfile on;
|
|
|
|
gzip on;
|
|
gzip_http_version 1.1;
|
|
gzip_vary off;
|
|
gzip_comp_level 6;
|
|
gzip_proxied any;
|
|
gzip_types text/plain text/html text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
|
|
gzip_buffers 16 8k;
|
|
|
|
include /opt/nginx/conf/sites/*.conf;
|
|
}
|