Avoid running as root.
[dcaegen2/services.git] / components / datalake-handler / admin / nginx / nginx.conf
1 user  nginx;
2 worker_processes  1;
3
4 error_log  /tmp/error.log warn;
5 pid        /tmp/nginx.pid;
6
7
8 events {
9     worker_connections  1024;
10 }
11
12
13 http {
14     include       /etc/nginx/mime.types;
15     default_type  application/octet-stream;
16
17     log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
18                       '$status $body_bytes_sent "$http_referer" '
19                       '"$http_user_agent" "$http_x_forwarded_for"';
20
21     access_log  /tmp/access.log  main;
22
23     sendfile        on;
24     #tcp_nopush     on;
25
26     keepalive_timeout  65;
27
28     #gzip  on;
29     client_body_temp_path /tmp/client_temp;
30     proxy_temp_path       /tmp/proxy_temp_path;
31     fastcgi_temp_path     /tmp/fastcgi_temp;
32     uwsgi_temp_path       /tmp/uwsgi_temp;
33     scgi_temp_path        /tmp/scgi_temp;
34
35     include /etc/nginx/conf.d/*.conf;
36 }