summaryrefslogtreecommitdiff
path: root/usr
diff options
context:
space:
mode:
authorCharlie Root <root@macon.53hor.net>2021-01-31 11:57:05 -0500
committerCharlie Root <root@macon.53hor.net>2021-01-31 11:57:05 -0500
commit508dcff6193ad605e88b828c86d092ec31456311 (patch)
tree8da2c549db27f2a2bf460088fdc0304e48639a6a /usr
parentd3e2b24d94d7566241c19557b0a2cbaf0ad6a257 (diff)
downloadtheglassyladies-508dcff6193ad605e88b828c86d092ec31456311.tar.xz
theglassyladies-508dcff6193ad605e88b828c86d092ec31456311.zip
updated to include htpasswd
Diffstat (limited to 'usr')
-rw-r--r--usr/local/etc/nginx/nginx.conf91
1 files changed, 52 insertions, 39 deletions
diff --git a/usr/local/etc/nginx/nginx.conf b/usr/local/etc/nginx/nginx.conf
index 555f7e0..efef87b 100644
--- a/usr/local/etc/nginx/nginx.conf
+++ b/usr/local/etc/nginx/nginx.conf
@@ -1,47 +1,60 @@
-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;
-
- location / {
- root /var/www;
- index index.html;
- try_files $uri $uri/ /index.html;
- }
+worker_processes 1;
- 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/;
+ sendfile on;
- limit_except GET OPTIONS {
+ 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;
+
+ 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/gl/images;
+ 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;
+ }
+ }
+
}
-
+
}
-