From 62c3585c2f3229d2e85af556491bcdb2f62d0d24 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Sat, 11 Feb 2023 17:32:07 -0500 Subject: [PATCH] [U] Update formatting --- README.md | 35 +++++++++++++++++++++++------------ 1 file changed, 23 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index bd9684a..0ae5341 100644 --- a/README.md +++ b/README.md @@ -38,19 +38,30 @@ This module uses the json file listing api in nginx. If you already have an auto The following example serves `/data/file-server` on http path `/` -```diff +**Before:** + +```nginx +# ... server_name your.domain.com; -- root /data/file-server; -+ set $dir_path /data/file-server; -+ include "/etc/nginx/MeowIndex/docs/nginx.conf"; +root /data/file-server; -- location / { -- fancyindex on; -- fancyindex_exact_size off; -- } +location / { + fancyindex on; + fancyindex_exact_size off; +} +``` -+ location / { -+ try_files $uri $uri/index.html /__meowindex__/index.html; -+ } -``` \ No newline at end of file +**After:** + +```nginx +# ... +server_name your.domain.com; + +set $dir_path /data/file-server; +include "/etc/nginx/MeowIndex/docs/nginx.conf"; + +location / { + try_files $uri $uri/index.html /__meowindex__/index.html; +} +```