• Stars
    star
    206
  • Rank 189,454 (Top 4 %)
  • Language Vue
  • License
    MIT License
  • Created over 5 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

基于Vue + Iview-Admin实现的一套后台管理系统

Install

// install dependencies
npm install --ignore-script

Run

Development

npm run dev

Production(Build)

npm run build

Docker 方式部署

修改CODO_VERrelease为最新的版本,静态文件的最终路径为 /var/www/codo/

echo -e "\033[32m [INFO]: codo(项目前端) Start install. \033[0m"
CODO_VER="codo-beta-0.3.4"
if ! which wget &>/dev/null; then yum install -y wget >/dev/null 2>&1;fi
[ ! -d /var/www ] && mkdir -p /var/www
cd /var/www && wget https://github.com/opendevops-cn/codo/releases/download/${CODO_VER}/${CODO_VER}.tar.gz
tar zxf ${CODO_VER}.tar.gz
if [ $? == 0 ];then
    echo -e "\033[32m [INFO]: codo(项目前端) install success. \033[0m"
else
    echo -e "\033[31m [ERROR]: codo(项目前端) install faild \033[0m"
    exit -8
fi

放置nginx配置文件,如果想使用https请自行修改nginx的配置文件,也可以参考项目下的nginx_ops.conf文件。

如果需要修改前端的访问域名可以直接修改配置文件中的server_name,proxy_pass对应的地址为网关地址,一定要和网关地址端口进行对应。

mkdir -p /my/nginx/conf.d/
cat >/my/nginx/conf.d/codo-init.conf<<\EOF
server {
        listen       80;
        server_name demo-init.opendevops.cn;
        access_log /var/log/nginx/codo-access.log;
        error_log  /var/log/nginx/codo-error.log;

        location / {
                    root /var/www/codo;
                    index index.html index.htm;
                    try_files $uri $uri/ /index.html;
        }
        location /api {
                ### ws 支持
                proxy_http_version 1.1;
                proxy_set_header Upgrade $http_upgrade;
                proxy_set_header Connection "upgrade";
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

                add_header 'Access-Control-Allow-Origin' '*';
                proxy_pass http://gw.opendevops.cn:8888;
        }

        location ~ /(.svn|.git|admin|manage|.sh|.bash)$ {
            return 403;
        }
}
EOF
#bulid 镜像
docker build . -t codo_image
#启动
docker-compose up -d
  • 测试一下 ls /var/www/codo/index.html 看下前端文件是不是存在
  • 测试一下 ls /my/nginx/conf.d/codo-init.conf 看下nginx配置文件是不是存在
  • swagger-ui 复制到/var/www/codo/目录即可,详情请参考安装文档。 命令如下:cd /opt/codo/codo && \cp -r swagger-ui/ /var/www/codo/

License

MIT

Copyright (c) 2016-present, iView

More Repositories

1

opendevops

CODO是一款为用户提供企业多混合云、一站式DevOps、自动化运维、完全开源的云管理平台、自动化运维平台
Python
3,623
star
2

codo-cmdb

基于Tornado实现的一套资产管理系统、支持AWS、阿里云、腾讯云、华为云自动拉取资产信息等
Python
340
star
3

codo-admin

基于Tornado实现,提供Restful风格的API,提供基于RBAC的完善权限管理,可对所有用户的操作进行审计
Python
210
star
4

codo-tools

CODO运维工具支持:告警管理、告警自愈、项目管理、事件管理、加密解密、随机密码、提醒管理等
Python
126
star
5

codo-dns

支持多区域智能解析、可视化Bind操作、操作日志记录等。支持阿里云、腾讯云、DNSPod、GoDaddy等厂商的云解析
Python
110
star
6

kerrigan

基于Tornado实现的一套配置中心,可基于分项目、环境管理配置,语法高亮、对比历史版本、快速回滚等,并提供Restful风格的API
Python
62
star
7

codo-cron

基于Tornado框架实现的一套定时任务系统,完全兼容Linux Crontab支持到秒级
Python
49
star
8

codo-task

基于Tornado实现,系统核心调度,可分布式扩展
Python
49
star
9

codo-check

SQL 审核 审计 执行 备份 索引优化,代码检查等
Python
18
star
10

codo-publish

CODO项目 COS、OOS、S3、服务器发布脚本示例
Python
14
star
11

codo-deploy-docs

快速部署文档
Shell
13
star
12

codo-res_app

CoDo平台资源申请,支持:AWS、阿里云、腾讯云等平台
Python
7
star
13

codo-agent-server

codo agent 仓库
6
star
14

codo-scripts

CODO示例脚本支持,不限语言提供各种示例脚本
Go
6
star
15

codo-agent

agent
3
star
16

opendevops-cn.github.io

vue 驱动的CoDo快速入门文档
HTML
2
star
17

codo-gateway

本系统是一个动态、实时、高性能的API网关,作为CoDo体系中所有后端流量的入口,统一管理后端流量。其功能包括服务发现、动态路由、动态上游、动态证书、动态IP防火墙、A/B测试、金丝雀发布、蓝绿部署、限流器、Referer限制、IP黑白名单、抵御恶意攻击、监控报警、服务可观测性、自动生成Request ID便于链路跟踪、gRPC代理、控制面板、JWT用户登录认证、RBAC用户鉴权、CORS跨域、接口协议加解密等。天门提供标准的插件接入方案,便于用户自定义插件以实现特定功能,全面满足复杂环境中的各种需求。
Lua
1
star