Lina 是 JumpServer 的前端 UI 项目
Go to file
2025-04-25 15:03:49 +08:00
.github
build
mock
public perf: update loading spinner 2025-03-18 11:24:57 +08:00
src perf: ko translate 2025-04-25 15:03:49 +08:00
tests/unit
utils
.dockerignore
.editorconfig
.env.development.example
.env.production
.env.staging
.eslintignore
.eslintrc.js
.gitignore feat: add xpack lock feat 2025-02-05 16:34:17 +08:00
.gitmodules
.travis.yml
alias.config.js
babel.config.js
Dockerfile perf: Added cloud sync global released asset tab (#4929) 2025-04-08 18:27:02 +08:00
Dockerfile-base
jest.config.js
jsconfig.json perf: some feat free 2025-02-06 12:48:16 +08:00
LICENSE
nginx.conf
package.json perf: change support email (#4933) 2025-04-08 13:22:38 +08:00
postcss.config.js
README.md
vue.config.js merge: with dev 2025-02-21 15:13:54 +08:00
yarn.lock perf: applet card list 2025-03-28 10:11:31 +08:00

Lina

Lina 是 JumpServer 的前端 UI 项目, 主要使用 Vue, Element UI 完成, 名字来源于 Dota 英雄 Lina

开发运行

0. 前置条件: 部署运行好 JumpServer API 服务器

1. 安装依赖
$ yarn install

2. 修改 .env.development VUE_APP_CORE_HOST
# ...
VUE_APP_CORE_HOST = 'JUMPSERVER_APIHOST'

3. 运行
$ yarn serve

4. 构建
$ yarn build:prod

生产中部署

下载 RELEASE 文件,放到合适的目录,修改 nginx配置文件如下

server {
  listen 80;

  location /ui/ {
    try_files $uri / /ui/index.html;
    alias /opt/lina/;
  }

  location / {
    rewrite ^/(.*)$ /ui/$1 last;
  }
}

致谢

Be consistent with jumpserver