summaryrefslogtreecommitdiff
path: root/usr/local
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local')
-rw-r--r--usr/local/etc/nginx/nginx.conf6
-rw-r--r--usr/local/etc/rc.d/dichroism11
2 files changed, 14 insertions, 3 deletions
diff --git a/usr/local/etc/nginx/nginx.conf b/usr/local/etc/nginx/nginx.conf
index efef87b..c955077 100644
--- a/usr/local/etc/nginx/nginx.conf
+++ b/usr/local/etc/nginx/nginx.conf
@@ -38,11 +38,11 @@ http {
location /login {
auth_basic "Glassy Ladies only!";
- auth_basic_user_file /var/db/theglassyladies/.htpasswd;
+ auth_basic_user_file /var/db/theglassyladies/htpasswd;
}
location /images/ {
- root /var/db/gl/images;
+ root /var/db/theglassyladies/images;
autoindex on;
}
@@ -51,7 +51,7 @@ http {
limit_except GET OPTIONS {
auth_basic "Glassy Ladies only!";
- auth_basic_user_file /var/db/theglassyladies/.htpasswd;
+ auth_basic_user_file /var/db/theglassyladies/htpasswd;
}
}
diff --git a/usr/local/etc/rc.d/dichroism b/usr/local/etc/rc.d/dichroism
new file mode 100644
index 0000000..fba6f7c
--- /dev/null
+++ b/usr/local/etc/rc.d/dichroism
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+. /etc/rc.subr
+
+name="dichroism"
+rcvar="${name}_enable"
+command="/usr/local/bin/${name}"
+start_cmd="cd /var/db/theglassyladies; ${command}"
+load_rc_config $name
+run_rc_command "$1"
+