Code Monkey home page Code Monkey logo

nginx-fancyindex-theme's Introduction

Nginx-Fancyindex-Theme

Theme "design material" for nginx-fancyindex module

web

mobile

use icon from https://feathericons.com/

Installation

The fancyindex module can be found here (by @aperezdc).

On debian

apt-get install git nginx-extras

sample of configuration of nginx

server {
    listen 80 default_server;
    client_max_body_size 1G;
    
    location / {
        root /<path_nginx_root>;
        fancyindex on;
        fancyindex_localtime on;
        fancyindex_name_length 255; # Maximum file name length in bytes, change as you like.
        # theme
        fancyindex_header "/fancyindex/header.html";
        fancyindex_footer "/fancyindex/footer.html";
        fancyindex_ignore "fancyindex";

        auth_basic  "Access restricted";
        auth_basic_user_file /etc/nginx/.htpasswd;
    }

}

you can clone project an copy file in your root path nginx

git clone https://github.com/fraoustin/Nginx-Fancyindex-Theme.git
mkdir /<path_nginx_root>/fancyindex
cd Nginx-Fancyindex-Theme
cp -R * /<path_nginx_root>/fancyindex

you can change color of interface

cd /<path_nginx_root>/fancyindex/mdl
rm material.min.css 
cp color/<your-color>.min.css material.min.css

TODO

optimize code

## THANK YOU

nginx-fancyindex-theme's People

Contributors

fraoustin avatar virb3 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

nginx-fancyindex-theme's Issues

sidebar creates wrong links if location root is not /

I have something like

location ~ ^/~(.+)/ {
  root /home/myname/http/;
  fancyindex on;
  fancyindex_header "/fancyindex/header.html";
  fancyindex_footer "/fancyindex/footer.html";
}

I get the layout and home button on the header as well as in the sidebar do take me to the correct page. However, if I browse examle.org/~myname/foo, I get an entry in the sidebar that links to example.org/foo instead.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.