diff --git a/README.md b/README.md index f4e7df3..e47b767 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,7 @@ location / { # ... server_name your.domain.com; +set $title "Meow Index"; set $dir_path /data/file-server; include "/etc/nginx/MeowIndex/docs/nginx.conf"; diff --git a/docs/nginx.conf b/docs/nginx.conf index 8fed6a7..36236be 100644 --- a/docs/nginx.conf +++ b/docs/nginx.conf @@ -10,6 +10,7 @@ location /__meowindex__ { sub_filter "{DEPLOY-PATH-PLACEHOLDER}" "/__meowindex__"; sub_filter "{HOST-PLACEHOLDER}" "/api"; sub_filter "\"/assets" "\"/__meowindex__/assets"; + sub_filter "File Listing" $title; # Serve index.html on other 404 paths as well try_files $uri /__meowindex__/index.html; @@ -23,4 +24,4 @@ location /api { autoindex on; autoindex_format json; add_header Access-Control-Allow-Origin *; -} \ No newline at end of file +} diff --git a/index.html b/index.html index bc1e0ab..d1355c5 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ - Meow Index + File Listing