merged cont.
[opensuse:yast-rest-service.git] / webservice / package / nginx.conf
1
2 user  yastws yastws;
3 worker_processes  1;
4
5 #error_log  logs/error.log;
6 #error_log  logs/error.log  notice;
7 #error_log  logs/error.log  info;
8
9 pid        /var/run/yastws.pid;
10
11
12 events {
13     worker_connections  1024;
14 }
15
16
17 http {
18     # Note: passenger_root option is automatically updated by
19     # /etc/init.d/yastws script at start up
20     passenger_root /usr/lib64/ruby/gems/1.8/gems/passenger-3.0.1;
21     passenger_ruby /usr/bin/ruby;
22     passenger_pool_idle_time 300;
23     passenger_min_instances 0;
24     passenger_default_user yastws;
25     passenger_user yastws;
26     passenger_max_pool_size 1;
27     passenger_max_instances_per_app 1;
28     passenger_spawn_method conservative;
29
30     client_body_temp_path  /var/lib/nginx/tmp_yastws 1 2;
31     fastcgi_temp_path  /var/lib//nginx/fastcgi_yastws 1 2;
32     proxy_temp_path  /var/lib//nginx/proxy_yastws 1 2;
33
34     include       mime.types;
35     default_type  application/octet-stream;
36
37     #access_log  logs/access.log  main;
38
39     sendfile        on;
40     #tcp_nopush     on;
41
42     #keepalive_timeout  0;
43     keepalive_timeout  65;
44
45     #gzip  on;
46
47     server {
48       listen 4984;
49       server_name localhost;
50       root /srv/www/yastws/public;
51       passenger_enabled on;
52       rails_framework_spawner_idle_time 300;
53       rails_app_spawner_idle_time 300;
54     }
55
56 }