Add automation for ADML HTTP image creation
[anna.git] / docker-images / anna-adml-http / etc / nginx / nginx.conf
diff --git a/docker-images/anna-adml-http/etc/nginx/nginx.conf b/docker-images/anna-adml-http/etc/nginx/nginx.conf
new file mode 100644 (file)
index 0000000..baf4c19
--- /dev/null
@@ -0,0 +1,29 @@
+user  nginx;
+worker_processes auto;
+
+error_log  /var/log/nginx/error.log warn;
+pid        /var/run/nginx.pid;
+
+events {
+    worker_connections  1024;
+}
+
+http {
+    # https://stackoverflow.com/questions/13895933/nginx-emerg-could-not-build-the-server-names-hash-you-should-increase-server/50813859
+    server_names_hash_bucket_size 64; 
+
+    include       /etc/nginx/mime.types;
+    default_type  application/octet-stream;
+
+    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
+                      '$status $body_bytes_sent "$http_referer" '
+                      '"$http_user_agent" "$http_x_forwarded_for"';
+
+    access_log  /var/log/nginx/access.log  main;
+
+    sendfile        on;
+    #tcp_nopush     on;
+    #gzip  on;
+
+    include /etc/nginx/conf.d/*.conf;
+}