diff options
-rw-r--r-- | nginx/arch.conf | 15 | ||||
-rw-r--r-- | nginx/arch_ssl.conf | 24 |
2 files changed, 39 insertions, 0 deletions
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; + } +} |