Lina 是 JumpServer 的前端 UI 项目
Go to file
fit2bot ca3a99a5cf
perf: 修改 passkey (#3382)
* perf: 修改 passkey

* perf: 完成 passkey

* perf: 修改 passkey icon

---------

Co-authored-by: ibuler <ibuler@qq.com>
2023-09-11 18:34:44 +08:00
.github perf: 修改github配置 2023-07-21 14:59:04 +08:00
build
mock
public
src perf: 修改 passkey (#3382) 2023-09-11 18:34:44 +08:00
tests/unit perf: 修改一些组件路径,原来的太难找了 2023-07-31 14:45:27 +08:00
utils
.dockerignore
.editorconfig
.env.development.example
.env.production
.env.staging
.eslintignore
.eslintrc.js
.gitignore
.gitmodules
.travis.yml
alias.config.js
babel.config.js
Dockerfile revert: 还原构建 2023-08-14 11:23:18 +08:00
jest.config.js
jsconfig.json
LICENSE
nginx.conf
package.json
postcss.config.js
README.md
vue.config.js perf: 调整 luna 的 proxy 的配置,支持 luna 录像播放 2023-06-29 15:20:14 +08:00
yarn.lock Merge pull request #3261 from jumpserver/dependabot/npm_and_yarn/semver-5.7.2 2023-07-21 10:28:11 +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