aboutsummaryrefslogtreecommitdiff
path: root/net/nginx/files/nginx.conf
diff options
context:
space:
mode:
Diffstat (limited to 'net/nginx/files/nginx.conf')
-rw-r--r--net/nginx/files/nginx.conf28
1 files changed, 28 insertions, 0 deletions
diff --git a/net/nginx/files/nginx.conf b/net/nginx/files/nginx.conf
new file mode 100644
index 000000000..8f8c8b194
--- /dev/null
+++ b/net/nginx/files/nginx.conf
@@ -0,0 +1,28 @@
+# Please consider creating files in /etc/nginx/conf.d/ instead of editing this.
+# For details see https://openwrt.org/docs/guide-user/services/webserver/nginx
+
+user root;
+
+events {}
+
+http {
+ access_log off;
+ log_format openwrt
+ '$request_method $scheme://$host$request_uri => $status'
+ ' (${body_bytes_sent}B in ${request_time}s) <- $http_referer';
+
+ include mime.types;
+ default_type application/octet-stream;
+ sendfile on;
+
+ client_max_body_size 17M;
+ large_client_header_buffers 2 1k;
+
+ gzip on;
+ gzip_vary on;
+ gzip_proxied any;
+
+ root /www;
+
+ include conf.d/*.conf;
+}