aboutsummaryrefslogtreecommitdiffstats
path: root/roles/nginx/files/nginx.conf
diff options
context:
space:
mode:
Diffstat (limited to 'roles/nginx/files/nginx.conf')
-rw-r--r--roles/nginx/files/nginx.conf33
1 files changed, 33 insertions, 0 deletions
diff --git a/roles/nginx/files/nginx.conf b/roles/nginx/files/nginx.conf
new file mode 100644
index 0000000..1ec0ea6
--- /dev/null
+++ b/roles/nginx/files/nginx.conf
@@ -0,0 +1,33 @@
+#
+# /etc/nginx/nginx.conf
+#
+
+user www-data;
+worker_processes auto;
+
+events {
+ worker_connections 1024;
+}
+
+http {
+ include /etc/nginx/mime.types;
+ default_type application/octet-stream;
+
+ sendfile on;
+ tcp_nopush on;
+ tcp_nodelay on;
+
+ server_names_hash_bucket_size 64;
+ types_hash_max_size 2048;
+ client_max_body_size 10M;
+
+ keepalive_timeout 65;
+
+ gzip on;
+ gzip_types text/css text/xml text/plain application/x-javascript application/atom+xml application/rss+xml;
+
+ autoindex on;
+ index index.html index.htm;
+
+ include /etc/nginx/sites-enabled/*;
+}