aboutsummaryrefslogtreecommitdiffstats
path: root/templates/homepage/usr_local_etc_nginx_nginx.conf.j2
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2025-10-11 17:47:46 +0300
committerJan Tuomi <jan@jantuomi.fi>2025-10-11 17:47:46 +0300
commitdbfa9c70b0480c209678090bf62f2c72d68f5264 (patch)
treea2eac68286fab97f274c2deb09ff42c3802e945e /templates/homepage/usr_local_etc_nginx_nginx.conf.j2
parent3117429d1eb122382e78e6cb27a07dd878f7c0e9 (diff)
Split jail.conf to jail.conf.d/
Diffstat (limited to 'templates/homepage/usr_local_etc_nginx_nginx.conf.j2')
-rw-r--r--templates/homepage/usr_local_etc_nginx_nginx.conf.j226
1 files changed, 26 insertions, 0 deletions
diff --git a/templates/homepage/usr_local_etc_nginx_nginx.conf.j2 b/templates/homepage/usr_local_etc_nginx_nginx.conf.j2
new file mode 100644
index 0000000..53d1c31
--- /dev/null
+++ b/templates/homepage/usr_local_etc_nginx_nginx.conf.j2
@@ -0,0 +1,26 @@
+worker_processes auto;
+
+events {
+ worker_connections 1024;
+}
+
+http {
+ include mime.types;
+ default_type application/octet-stream;
+
+ sendfile on;
+ keepalive_timeout 65;
+
+ server {
+ listen 80 default_server;
+ server_name _;
+
+ root /var/www;
+
+ index index.html;
+
+ location / {
+ try_files $uri $uri.html $uri/ =404;
+ }
+ }
+}