[U] Update formatting

This commit is contained in:
Hykilpikonna
2023-02-11 17:32:07 -05:00
committed by GitHub
parent 4db65f2c66
commit 62c3585c2f
+23 -12
View File
@@ -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 `/` The following example serves `/data/file-server` on http path `/`
```diff **Before:**
```nginx
# ...
server_name your.domain.com; server_name your.domain.com;
- root /data/file-server; root /data/file-server;
+ set $dir_path /data/file-server;
+ include "/etc/nginx/MeowIndex/docs/nginx.conf";
- location / { location / {
- fancyindex on; fancyindex on;
- fancyindex_exact_size off; fancyindex_exact_size off;
- } }
```
+ location / { **After:**
+ try_files $uri $uri/index.html /__meowindex__/index.html;
+ } ```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;
}
```