From d4cf6ea5a586b9900d30950fc6934a166306459a Mon Sep 17 00:00:00 2001 From: L3D Date: Thu, 7 Jul 2022 22:15:06 +0200 Subject: [PATCH] update files.l3d.ch --- .../files/nginx/sites/files.l3d.ch_tls.conf | 25 ++++++++++++++----- 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/templates/files/nginx/sites/files.l3d.ch_tls.conf b/templates/files/nginx/sites/files.l3d.ch_tls.conf index 0a69fa3..3fa321a 100644 --- a/templates/files/nginx/sites/files.l3d.ch_tls.conf +++ b/templates/files/nginx/sites/files.l3d.ch_tls.conf @@ -4,9 +4,9 @@ server { server_name files.l3d.ch; - include snippets/tls_parameters_{{ site.name }}.snippet.conf; - include snippets/tls_certificate_{{ site.name }}.snippet.conf; - include snippets/logging_{{ site.name }}.snippet.conf; + include snippets/tls_parameters_files.l3d.ch.snippet.conf; + include snippets/tls_certificate_files.l3d.ch.snippet.conf; + include snippets/logging_files.l3d.ch.snippet.conf; root /srv/www/files.l3d.ch; @@ -19,6 +19,8 @@ server { } location /share/ { + add_before_body /theme/header.html; + add_after_body /theme/footer.html; autoindex on; autoindex_exact_size off; autoindex_localtime on; @@ -26,19 +28,30 @@ server { } location /fff/ { + add_before_body /theme/header.html; + add_after_body /theme/footer.html; autoindex on; autoindex_exact_size off; autoindex_localtime on; - add_header X-Served-By "teapot CYBER 4.0 (with blockchain)"; } - location = /hidden/ { + location /hidden/ { autoindex off; - add_header X-Served-By "teapot CYBER 4.0 (with blockchain)"; + add_header X-Served-By "I am a teapod"; return 418; } + location /thw/ { + add_before_body /theme/header.html; + add_after_body /theme/footer.html; + autoindex on; + autoindex_exact_size off; + autoindex_localtime on; + } + location ~ /hidden/[\S+]+/ { + add_before_body /theme/header.html; + add_after_body /theme/footer.html; autoindex on; autoindex_exact_size off; autoindex_localtime on;