Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/manala/nginx-autoindex-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md24
1 files changed, 24 insertions, 0 deletions
diff --git a/README.md b/README.md
index 6a3ec0c..012aaba 100644
--- a/README.md
+++ b/README.md
@@ -2,10 +2,34 @@
## Integration
+Clone the repository into a root hidden .theme folder
+
+ git clone https://github.com/manala/nginx-autoindex-theme.git .theme
+
+Add the following parameters to your nginx configuration
+
+ ...
add_before_body /.theme/header.html;
add_after_body /.theme/footer.html;
+
autoindex_exact_size off;
autoindex on;
+ ...
+
+You can also handle subdirectoris this way
+
+ location /foobar {
+ alias /usr/share/nginx/html/foobar/;
+
+ sub_filter_once off;
+ sub_filter '/.theme' '/foobar/.theme';
+
+ add_before_body /foobar/.theme/header.html;
+ add_after_body /foobar/.theme/footer.html;
+
+ autoindex_exact_size off;
+ autoindex on;
+ }
## Inspiration