summaryrefslogtreecommitdiff
path: root/user/nginx/nginx.conf
diff options
context:
space:
mode:
Diffstat (limited to 'user/nginx/nginx.conf')
-rw-r--r--user/nginx/nginx.conf28
1 files changed, 28 insertions, 0 deletions
diff --git a/user/nginx/nginx.conf b/user/nginx/nginx.conf
new file mode 100644
index 000000000..204d667d5
--- /dev/null
+++ b/user/nginx/nginx.conf
@@ -0,0 +1,28 @@
+# This is an example configuration file for nginx, with a number of secure
+# defaults specified already.
+
+# The system user that nginx runs under.
+user nginx;
+
+# The number of worker processes nginx should have. 'Auto' allows nginx
+# to determine for itself; typically this value should be the number of
+# cores you wish nginx to use.
+worker_processes auto;
+
+# HTTP-specific configuration
+http {
+ # Default mapping of MIME types to file extensions.
+ include mime.types;
+
+ # The default MIME type to use for unknown extensions.
+ default_type application/octet-stream;
+
+ # This setting enables gzip-based compression, reducing bandwidth usage.
+ gzip on;
+
+ # Global configuration.
+ include conf.d/*.conf;
+
+ # Site configuration.
+ include sites.d/*.conf;
+}