feat: add protected data.json endpoint with Basic Auth and content type headers
This commit is contained in:
parent
1c79adb906
commit
d1b292e1f8
@ -43,6 +43,12 @@ http {
|
||||
gzip on;
|
||||
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
|
||||
|
||||
# Deny direct access to any files that might be mapped under a /data/ URI path
|
||||
location /data/ {
|
||||
deny all;
|
||||
return 404; # Or 403 Forbidden
|
||||
}
|
||||
|
||||
location / {
|
||||
include /etc/nginx/nginx-auth.conf; # Apply Basic Auth to the whole site
|
||||
try_files $uri $uri/ /index.html;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user