aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2023-01-26 22:14:36 +0100
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2023-01-26 22:14:36 +0100
commit6357c11d61c9286c591a758dd735a2ba5a2ac26f (patch)
treea7096586bd5235538eefd4e180732ea4a32206c7
parent9e9fffc899c41eccd031212ef0af23c78fc7a1c6 (diff)
downloadaurbuilder-6357c11d61c9286c591a758dd735a2ba5a2ac26f.tar.gz
nginx.conf
-rw-r--r--nginx/arch.conf15
-rw-r--r--nginx/arch_ssl.conf24
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;
+ }
+}