Skip to content

Luna Deployment⚓︎

1 Luna Component Description⚓︎

Luna is a front-end UI project for JumpServer, mainly completed with 'Angular CLI'。

1.1 Environmental requirements⚓︎

Name Luna Node
Version v3.10.5 16.5

1.2 Deployment method⚓︎

  • Download SourceCode.
  • You can get the latest [Release] [corerelease] copy from the Github website. These versions are stable snapshots of the latest code. Download the Source code.tar.gz source code from the project website and extract the archive from the command line:
cd /opt
mkdir /opt/luna-v3.10.5
wget -O /opt/luna-v3.10.5.tar.gz https://github.com/jumpserver/luna/archive/refs/tags/v3.10.5.tar.gz
tar -xf luna-v3.10.5.tar.gz -C /opt/luna-v3.10.5 --strip-components 1
  • Install Node.
  • Deploy Node.js from the official website reference document of Node. Please determine whether the installation is complete through the command line according to [Environment Requirements] (# _10):

node -v
v16.5

  • Install dependencies.
cd /opt/luna-v3.10.5
yarn install
  • Update the config file.

sed -i "s@[0-9].[0-9].[0-9]@v3.10.5@g" src/environments/environment.prod.ts
vi proxy.conf.json
{
  "/koko": {
    "target": "http://localhost:5000",  # KoKo url
    "secure": false,
    "ws": true
  },
  "/media/": {
    "target": "http://localhost:8080",  # Core url
    "secure": false,
    "changeOrigin": true
  },
  "/api/": {
    "target": "http://localhost:8080",  # Core url
    "secure": false,                    # https ssl enable
    "changeOrigin": true
  },
  "/core": {
    "target": "http://localhost:8080",  # Core url
    "secure": false,
    "changeOrigin": true
  },
  "/static": {
    "target": "http://localhost:8080",  # Core url
    "secure": false,
    "changeOrigin": true
  },
  "/lion": {
    "target": "http://localhost:9529",  # Lion url
    "secure": false,
    "pathRewrite": {
      "^/lion/monitor": "/monitor"
    },
    "ws": true,
    "changeOrigin": true
  },
  "/omnidb": {
    "target": "http://localhost:8082",
    "secure": false,
    "ws": true,
    "changeOrigin": true
  }
}

  • Run Luna。
./node_modules/.bin/ng serve
  • Bulid Luna。
yarn build
cp -R src/assets/i18n luna/
cp -rf luna luna-v3.10.5
tar -czf luna-v3.10.5.tar.gz luna-v3.10.5

After building is completed, generate it in directory of Luna

  • Download the Release file and obtain the latest copy of [Release] [luna-release] from the Github website.
  • These versions are stable snapshots of the latest code.
OS Arch Name
All All luna-v3.10.5.tar.gz
cd /opt
wget https://github.com/jumpserver/luna/releases/download/v3.10.5/luna-v3.10.5.tar.gz
tar -xf luna-v3.10.5.tar.gz