You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
李栋 a5777e08c7 增加构建环境回显 7 months ago
doc change media/disk API patterns 2 years ago
web_root update web_root from portal for 1.3 release 9 months ago
.drone.yml 增加构建环境回显 7 months ago
.gitignore 0.1.2 3 years ago
CHANGELOG.md add forward request for 1.3 9 months ago
LICENSE Initial commit 3 years ago
README.md ready for 1.0.0 2 years ago
channel_handler.go fixed: huge memory allocate cause OOM kill 1 year ago
channel_manager.go add api signature/prefix 2 years ago
daemon.go enabled SPA 2 years ago
frontend_service.go sync images tested 9 months ago
go.mod add api signature/prefix 2 years ago
go.sum add api signature/prefix 2 years ago
log_agent.go fixed: visibilities/query logs 2 years ago
log_manager.go visibility&Search guest/media/disk images via sessioin 2 years ago
session_manager.go 调整默认session超时为一天,增加自动构建 7 months ago
user_manager.go Remove from the group when deleting a user 10 months ago

README.md

README

Overview

The FrontEnd is the web portal for users of Nano. It hosts HTML5 web pages based on the REST API of the Core module and also provides authentication and user management for the web portal.

You can modify pages in the path "resource" to meet your need, or even write a whole new module using REST API to replace this one.

Binary release found here

See more detail for Quick Guide

Official Site: https://nanos.cloud/en-us/

REST API: https://nanoen.docs.apiary.io/

Build

#git clone https://github.com/project-nano/frontend.git
#cd frontend
#go build -o frontend -i -ldflags="-w -s"

Command Line

All Nano modules provide the command-line interface, and called like :

< module name > [start | stop | status | halt]

  • start: start module service, output error message when start failed, or version information.
  • stop: stops the service gracefully. Releases allocated resources and notify any related modules.
  • status: checks if the module is running.
  • halt: terminate service immediately.

You can call the FrontEnd module both in the absolute path and relative path.

#cd /opt/nano/frontend
#./frontend start

or

#/opt/nano/frontend/frontend start

Please check the log file "log/frontend.log" when encountering errors.

Configure

Configuration stores in file 'config/frontend.cfg'.

Parameter Description
address Listening address of web portal, IPv4 format like '192.168.100'.
port Listening port of web portal, 5870 in default as integer.
service_host Listening address of backend service(the Core module), IPv4 format like '192.168.100'.
service_port Listening port of backend service(the Core module), 5850 in default as integer.