aboutsummaryrefslogtreecommitdiff
path: root/src/110/nginx.conf
diff options
context:
space:
mode:
authorAutumn <git@autumnfo.rest>2026-05-07 20:36:45 +0100
committerAutumn <git@autumnfo.rest>2026-05-07 20:36:45 +0100
commit08feb8f588f29b9cd6d067c3dae2c82a16491882 (patch)
treece0faa0a46f8914738d685343f73ae5b4b4a604e /src/110/nginx.conf
parentbdd51e7cf2c61db59a694c8b145b59eeccde8ab1 (diff)
[110] added nginx.conf
Diffstat (limited to 'src/110/nginx.conf')
-rw-r--r--src/110/nginx.conf79
1 files changed, 79 insertions, 0 deletions
diff --git a/src/110/nginx.conf b/src/110/nginx.conf
new file mode 100644
index 0000000..46024c6
--- /dev/null
+++ b/src/110/nginx.conf
@@ -0,0 +1,79 @@
+#
+# ~~~ nginx config
+#
+
+#
+# ~~~ system
+
+# user
+user nginx nginx;
+
+# jit
+pcre_jit on;
+
+#
+# ~~~ workers
+
+# enable
+worker_processes auto;
+
+events {
+ worker_connections 1024;
+}
+
+#
+# ~~~ logging
+
+# error log
+error_log /dev/null;
+
+#
+# ~~~ http settings
+http {
+
+ # upgrade requests
+ map $http_upgrade $connection_upgrade {
+ default upgrade;
+ '' close;
+ }
+
+ # types
+ include /etc/nginx/mime.types.nginx;
+
+ # disable sending version
+ server_tokens off;
+
+ # body size
+ client_max_body_size 512m;
+
+ # optimisations
+ sendfile on;
+ tcp_nopush on;
+
+ # ssl protocols
+ ssl_protocols TLSv1.2 TLSv1.3;
+ ssl_prefer_server_ciphers on;
+ ssl_session_cache shared:SSL:2m;
+ ssl_session_timeout 1h;
+ ssl_session_tickets off;
+
+ # compression
+ gzip_vary on;
+
+ # disable logging
+ access_log off;
+
+ # load domains
+ include /etc/nginx/conf.d/*.conf;
+
+ # load redirects
+ include /etc/nginx/redirect.d/*.conf;
+}
+
+#
+# ~~~ stream settings
+stream {
+
+ # load streams
+ include /etc/nginx/stream.d/*.conf;
+}