Rewrite html5as software release using jinja2
[slapos.git] / software / html5as / templates / nginx_conf.in
1 worker_processes {{ param_html5as['nb_workers'] }};
2
3 user nouser nogroup;
4 pid {{ param_html5as['path_pid'] }};
5 error_log {{ param_html5as['path_error_log'] }};
6
7 events {
8         worker_connections 1024;
9         accept_mutex off;
10 }
11
12 http {
13         #include mime.types;
14         default_type application/octet-stream;
15     access_log {{ param_html5as['path_access_log'] }} combined;
16         index index.html;
17
18     server {
19         listen [{{ param_html5as['ip'] }}]:{{ param_html5as['port'] }};
20         server_name _;
21
22         keepalive_timeout 5;
23         client_body_temp_path {{ param_html5as['path_tmp'] }}/client_body_temp;
24         proxy_temp_path {{ param_html5as['path_tmp'] }}/proxy_temp;
25         fastcgi_temp_path {{ param_html5as['path_tmp'] }}/fastcgi_temp;
26         uwsgi_temp_path {{ param_html5as['path_tmp'] }}/uwsgi_temp;
27         scgi_temp_path {{ param_html5as['path_tmp'] }}/scgi_temp;
28
29         # path for static files
30         root {{ param_html5as['docroot'] }};
31     }
32 }