GithubHelp home page GithubHelp logo

web-dashboard-for-clash-with-nginx's Introduction

Web Dashboard using nginx for Clash For Linux

Clash repo site: click me

How To Use It

Docker

  1. git clone this repo and cd.
  2. docker image build -t clash_dashboard:0.0.2 .
  3. docker container run -p 8080:80 -d clash_dashboard:0.0.2
  4. Open the website: http://localhost:8080/, enjoy :)

Manual

  1. At first you should install nginx from your distribution's repository. For me, I'm using Arch Linux
sudo pacman -S nginx
  1. Clone this repo and put these folders into your nginx's web sources folder
    1. at.alicdn.com
    2. clash.razord.top
  2. Add these two configuration file to your nginx's configuration

clash.conf

server {
        server_name             localhost;
        listen                  30000;
    
        access_log              /var/log/nginx/clash.log;
        error_log               /var/log/nginx/clash.err;
    
        root                    /path/to/your/clash.razord.top;
        index                   index.html;
}

clash_font.conf

server {
        server_name             localhost;
        listen                  30001;

        access_log              /var/log/nginx/clash_font.log;
        error_log               /var/log/nginx/clash_font.err;

        root                    /path/to/your/at.alicdn.com;
        index                   index.html;
}
  1. Reload nginx and check http://localhost:30000

web-dashboard-for-clash-with-nginx's People

Contributors

jinnnyang avatar syize 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  avatar  avatar  avatar

Watchers

 avatar

web-dashboard-for-clash-with-nginx's Issues

404问题

我使用下面两种配置在 Nginx 里,但都提示 404 Not Found。

  server {
        server_name             192.168.1.4;
        listen                  30000;
    
        access_log              /var/log/nginx/clash.log;
        error_log               /var/log/nginx/clash.err;
        location / {
            root                    /opt/clash/web-ui/clash.razord.top;
            index                   index.html;
        }
   }
  server {
        server_name             192.168.1.4;
        listen                         30000;
    
        access_log                 /var/log/nginx/clash.log;
        error_log                   /var/log/nginx/clash.err;

        root                          /opt/clash/web-ui/clash.razord.top;
        index                        index.html;

   }

image

image

求大佬解答

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.