diff options
author | Adam T. Carpenter <atc@53hor.net> | 2021-01-31 11:45:04 -0500 |
---|---|---|
committer | Adam T. Carpenter <atc@53hor.net> | 2021-01-31 11:45:04 -0500 |
commit | d3e2b24d94d7566241c19557b0a2cbaf0ad6a257 (patch) | |
tree | 37275fe91d560b7a82333e00ddd88a853bbdbd55 /usr/local/etc/nginx | |
parent | 985f35b3e92de36bbb651c934fb74cb7cb42b056 (diff) | |
parent | 27138be0504ddfa1cf7ad3bf11c920a922452eae (diff) | |
download | theglassyladies-d3e2b24d94d7566241c19557b0a2cbaf0ad6a257.tar.xz theglassyladies-d3e2b24d94d7566241c19557b0a2cbaf0ad6a257.zip |
Merge branch 'master' of http://192.168.1.50:3000/macon-bastille/theglassyladies
Diffstat (limited to 'usr/local/etc/nginx')
-rw-r--r-- | usr/local/etc/nginx/nginx.conf | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/usr/local/etc/nginx/nginx.conf b/usr/local/etc/nginx/nginx.conf new file mode 100644 index 0000000..555f7e0 --- /dev/null +++ b/usr/local/etc/nginx/nginx.conf @@ -0,0 +1,47 @@ +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; + } + + 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/gl/.htpasswd; + } + } + +} + |