summaryrefslogtreecommitdiff
path: root/files/etc/nginx.conf
diff options
context:
space:
mode:
authorNate Buttke <nate-web@riseup.net>2021-12-27 19:11:27 -0800
committerNate Buttke <nate-web@riseup.net>2021-12-27 19:11:27 -0800
commitb360c6f62c3a99bbe57b7d0c7f5fa55f9336a563 (patch)
tree978acf0b3c07a4f6307274b5b50512c41aad716e /files/etc/nginx.conf
restart repoHEADmaster
Diffstat (limited to 'files/etc/nginx.conf')
-rw-r--r--files/etc/nginx.conf31
1 files changed, 31 insertions, 0 deletions
diff --git a/files/etc/nginx.conf b/files/etc/nginx.conf
new file mode 100644
index 0000000..67739d4
--- /dev/null
+++ b/files/etc/nginx.conf
@@ -0,0 +1,31 @@
+user http;
+worker_processes auto;
+worker_cpu_affinity auto;
+
+events {
+ multi_accept on;
+ worker_connections 1024;
+}
+
+http {
+ charset utf-8;
+ sendfile on;
+ tcp_nopush on;
+ tcp_nodelay on;
+ server_tokens off;
+ log_not_found off;
+ types_hash_max_size 4096;
+ client_max_body_size 16M;
+
+ # MIME
+ include mime.types;
+ default_type application/octet-stream;
+
+ # logging
+ access_log /var/log/nginx/access.log;
+ error_log /var/log/nginx/error.log warn;
+
+ # load configs
+ include /etc/nginx/conf.d/*.conf;
+ include /etc/nginx/sites-enabled/*;
+}