Add automation for ADML HTTP image creation
[anna.git] / docker-images / anna-adml-http / etc / nginx / nginx.conf
1 user  nginx;
2 worker_processes auto;
3
4 error_log  /var/log/nginx/error.log warn;
5 pid        /var/run/nginx.pid;
6
7 events {
8     worker_connections  1024;
9 }
10
11 http {
12     # https://stackoverflow.com/questions/13895933/nginx-emerg-could-not-build-the-server-names-hash-you-should-increase-server/50813859
13     server_names_hash_bucket_size 64; 
14
15     include       /etc/nginx/mime.types;
16     default_type  application/octet-stream;
17
18     log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
19                       '$status $body_bytes_sent "$http_referer" '
20                       '"$http_user_agent" "$http_x_forwarded_for"';
21
22     access_log  /var/log/nginx/access.log  main;
23
24     sendfile        on;
25     #tcp_nopush     on;
26     #gzip  on;
27
28     include /etc/nginx/conf.d/*.conf;
29 }