summaryrefslogtreecommitdiff
path: root/usr/local/etc
diff options
context:
space:
mode:
authorAdam T. Carpenter <atc@53hor.net>2021-02-01 17:26:31 -0500
committerAdam T. Carpenter <atc@53hor.net>2021-02-01 17:26:31 -0500
commitc235e308a5f489caf7f6bb734bc78918a4134bdc (patch)
tree95f0d7c833da76a81e2531f9de089e5a1f69b04a /usr/local/etc
parent0781bed2bc4e5fe1fd0da7ea81e9e810433bc17f (diff)
parentc2b8b817a80d7b8c8a756b5f099329d8e5bc1837 (diff)
downloadtheglassyladies-c235e308a5f489caf7f6bb734bc78918a4134bdc.tar.xz
theglassyladies-c235e308a5f489caf7f6bb734bc78918a4134bdc.zip
Merge branch 'master' of http://192.168.1.50:3000/macon-bastille/theglassyladies
Diffstat (limited to 'usr/local/etc')
-rw-r--r--usr/local/etc/nginx/nginx.conf89
-rw-r--r--usr/local/etc/rc.d/dichroism11
2 files changed, 61 insertions, 39 deletions
diff --git a/usr/local/etc/nginx/nginx.conf b/usr/local/etc/nginx/nginx.conf
index 555f7e0..d049eec 100644
--- a/usr/local/etc/nginx/nginx.conf
+++ b/usr/local/etc/nginx/nginx.conf
@@ -1,47 +1,58 @@
-server {
- server_name theglassyladies.com;
- listen 80;
- rewrite ^/admin$ https://theglassyladies.com redirect;
- rewrite ^/care$ https://theglassyladies.com redirect;
- rewrite ^/faq$ https://theglassyladies.com redirect;
- rewrite ^/privacy$ https://theglassyladies.com redirect;
- rewrite ^/cart$ https://theglassyladies.com redirect;
- rewrite ^/checkout$ https://theglassyladies.com redirect;
- client_max_body_size 10M;
- gzip on;
- gzip_vary on;
- #gzip_min_length 10240;
- gzip_proxied expired no-cache no-store private auth;
- gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/xml;
- gzip_disable "MSIE [1-6]\.";
- sendfile on;
- sendfile_max_chunk 1m;
- keepalive_timeout 65;
+worker_processes auto;
- location / {
- root /var/www;
- index index.html;
- try_files $uri $uri/ /index.html;
- }
-
- location /login {
- auth_basic "Glassy Ladies only!";
- auth_basic_user_file /var/db/gl/.htpasswd;
- }
+events {
+ worker_connections 1024;
+}
- location /images/ {
- root /var/db/gl/images;
- autoindex on;
- }
+http {
+ include mime.types;
+ default_type application_octet-stream;
- location /api/ {
- proxy_pass http://localhost:9876/;
+ server {
+ server_name theglassyladies.com;
+ listen 80;
+ rewrite ^/admin$ https://theglassyladies.com redirect;
+ rewrite ^/care$ https://theglassyladies.com redirect;
+ rewrite ^/faq$ https://theglassyladies.com redirect;
+ rewrite ^/privacy$ https://theglassyladies.com redirect;
+ rewrite ^/cart$ https://theglassyladies.com redirect;
+ rewrite ^/checkout$ https://theglassyladies.com redirect;
+ client_max_body_size 10M;
+ gzip on;
+ gzip_vary on;
+ gzip_proxied expired no-cache no-store private auth;
+ gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/xml;
+ gzip_disable "MSIE [1-6]\.";
- limit_except GET OPTIONS {
+ sendfile on;
+ sendfile_max_chunk 1m;
+ keepalive_timeout 65;
+
+ location / {
+ root /var/www;
+ index index.html;
+ try_files $uri $uri/ /index.html;
+ }
+
+ location /login {
auth_basic "Glassy Ladies only!";
- auth_basic_user_file /var/db/gl/.htpasswd;
+ auth_basic_user_file /var/db/theglassyladies/htpasswd;
+ }
+
+ location /images/ {
+ root /var/db/theglassyladies;
+ autoindex on;
+ }
+
+ location /api/ {
+ proxy_pass http://localhost:9876/;
+
+ limit_except GET OPTIONS {
+ auth_basic "Glassy Ladies only!";
+ 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"
+