From 6357c11d61c9286c591a758dd735a2ba5a2ac26f Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Thu, 26 Jan 2023 22:14:36 +0100 Subject: nginx.conf --- nginx/arch.conf | 15 +++++++++++++++ nginx/arch_ssl.conf | 24 ++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 nginx/arch.conf create mode 100644 nginx/arch_ssl.conf diff --git a/nginx/arch.conf b/nginx/arch.conf new file mode 100644 index 0000000..c66ad85 --- /dev/null +++ b/nginx/arch.conf @@ -0,0 +1,15 @@ +# vi: ft=nginx + +server { + listen 80; + #server_name localhost; + + location / { + root /srv/arch/; + + autoindex on; + autoindex_exact_size off; + autoindex_format html; + autoindex_localtime on; + } +} diff --git a/nginx/arch_ssl.conf b/nginx/arch_ssl.conf new file mode 100644 index 0000000..40ec2b7 --- /dev/null +++ b/nginx/arch_ssl.conf @@ -0,0 +1,24 @@ +# vi: ft=nginx + +server { + listen 443 ssl; + #server_name localhost; + + ssl_certificate cert.pem; + ssl_certificate_key cert.key; + + ssl_session_cache shared:SSL:1m; + ssl_session_timeout 5m; + + ssl_ciphers HIGH:!aNULL:!MD5; + ssl_prefer_server_ciphers on; + + location / { + root /srv/arch/; + + autoindex on; + autoindex_exact_size off; + autoindex_format html; + autoindex_localtime on; + } +} -- cgit v1.2.3