Giter Site home page Giter Site logo

djun / openvpn-cms-vue Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xiaoyunjie/openvpn-cms-vue

0.0 0.0 0.0 6.51 MB

一套基于Lin-cms框架开发的openvpn管理系统,此项目是前端,用的是vue构建。

License: Apache License 2.0

JavaScript 41.73% CSS 13.68% HTML 0.18% Vue 42.62% EJS 0.30% SCSS 1.49%

openvpn-cms-vue's Introduction

openvpn-cms-vue

(如果此系统对你有所帮助,请Start一波!!)

后端系统传送门

基于Lin-cms-vue 二次开发的openvpn-cms-vue,是openvpn-cms的前端,后端是openvpn-cms-flask

VPN概览 images

VPN列表 images

VPN历史信息 images

安装部署

  • Node.js(version:8.11.0+)
  • npm (version: 5.6.0)

克隆代码:git clone https://github.com/xiaoyunjie/openvpn-cms-vue.git openvpn-cms-vue

安装npm:yum install -y npm

更新npm到5.6.0:npm i -g n

更新node后,版本没有发生变化,原因是环境变量没有设置

echo "export N_PREFIX=/usr/local" >> /etc/profile
echo "export PATH=\$N_PREFIX/bin:\$PATH" >> /etc/profile
source /etc/profile
mkdir -p /usr/local/n

切换node版本:sudo n 8.11.3

安装:cd /opt/openvpn-cms-vue && npm install

修改配置文件 index.js

vi src/config/index.js
baseURL: 'http://IP:5000'   ## 地址改成本机IP,不要使用环回口或localhost

启动

npm install

npm run serve

http://localhost:8000

发布

vue项目无需每次都 npm run serve,只需要打包成html页面,静态发布就行。

npm run build   ## 打包

打包完成后,会在当前目录下生成一个dist目录,里面就是静态文件,将文件放到指定目录下,并用nginx代理。

yum install nginx -y    ## 安装nginx
mkdir -p /www           ## 创建发布目录
cp -r dist/*  /www      ## 拷贝静态文件到发布目录
systemctl start nginx   ## 启动nginx
systemctl enable nginx  ## 开机启动nginx

nignx 配置

http {
    server {
        listen       80 default_server;
        server_name  _;
        root    /www;   
        
        location / {
        }
        error_page 404 /404.html;
            location = /40x.html {
        }
        error_page 500 502 503 504 /50x.html;
            location = /50x.html {
        }
    }
}

如果此系统对你有所帮助,请Start一波!!

欢迎交流

QQ:2913381648

openvpn-cms-vue's People

Contributors

dependabot[bot] avatar xiaoyunjie avatar

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.