
Security News
Rust RFC Proposes a Security Tab on crates.io for RustSec Advisories
Rust’s crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.
corgiserver
Advanced tools
A web server running javascript like tomcat.
corgiserver is a web server running javascript code, supports multiple projects, and ROOT as the default project. It is similar to Java Tomcat server, default resolution .csp file, which is a packet (specific wording javascript files) container.corgiserver is a nodejs module container.
Please refer to packet BrightJS doc
step 1: install corgiserver
npm install corgiserver -g
step 2:
$ corgiserver create <projectname>,<projectpath>
the command will create the folder of project and its files.
step 3:
goto the project folder to build the controllers.
step 4
run the server $ corgiserver -start
project
├─node_modules (forbidden) => $ npm install <module> --save
├─WEBINF (forbidden)
│ ├─src
│ │ └─<code>
│ └─web.json
├─<assets>
├─...
├─index.html
└─package.json
Third-party modules can co-exist with the project, the project can not references to each other between the third-party modules.Of course, you can use a global third-party modules.
rquire Third-party modules in the project code just like
require("/<moduleName>");,"/"is important.
Would start separately configured service project when a project starts, all the services are started after the project start is completed. After the completion of the project started, the request will come one by one through the filter chain processing, and then return.
Use the built-in framework to define mvcservice and mvcfilter in web.json file project
path template path
suffix suffix template
server config under the conf/server.json file control
lib/modules/base.jsCustom modules arranged in this order basis having
web config under the conf/web.json file control
Server modules need to be placed under lib / modules / directory and each Module to determine a good inheritance.
project object
isOuterProject() whether the project as external project (project initiated by the configuration file, instead of in webapps run as folders)getPacketPath() packet directory projectgetProjectPath() project directory
Configuration information objectgetProjectConfig() projectgetProjectName() Project Name Whether there are key attributes hasAttr (key) projects the global cachegetAttr(key) Gets the value of key projects from the global cachesetAttr(key, value) to set key-value cache to the global projectpacketLoader object
get(name, option) Get packet instancehas(name) to determine whether packet contains definitionseach(fn) through all packet definitionsCorgiServer
getServiceConfig() Gets the object serverConfiggetWebConfig() Gets Global web Config ObjectgetCspContent(path) Gets csp file contentssetTemplateMacro(key, fn) set a custom label templates globallyserverConfig
getHost()getPort()getModules()getBasePath()getConfigPath()webConfig
getSessionConfig()getSessionTimeout()getPagePath()getMimeType()getBasePath()getConfigPath()isCspCache()projectConfig
getService()getFilter()hasFilter()hasService()getPagePath()hasPage()getServiceSize()getFilterSize()webapps/ROOT default project
webapps/todo how to use mysql with corgi
webapps/test how to use controller and so on
webapps/doc how to write controller and custom corgi
Sample blog corgiblog->github
Execute the command and then run the blog
$ corgiserver install <projectName> <localFolder> https://github.com/hou80houzhu/corgiblog/archive/master.zip
this command will download the zip file,and build it,then you can run it with corgiserver. with this command you can update your site too.
start without daemon process
$ corgiserver -run
start without corgiserver daemon process,but you can also daemon it by nohup in linux,or use forever.js.
$ nohup corgiserver -run &
start corgiserver with corgiserver daemon
$ corgiserver -start
Useage:
version show version
run just start without deamon process
? help
help help
restart restart server
start start server
stop close all corgiserver service
status show the server running status.
create:<projectName>,<projectPath>
create project with a projectName and its local file path
daemonpid show the daemon process id
remove:<projectName>
remove porject with projectName
ls list all the projects
sport:<port>
set current port of corgiserver
ssessiontimeout:<time>
set current session timeout of corgiserver
info show corgiserver info
encache enable to cache csp
discache disable to cache csp
remoteprojects list all remote projects
install:<projectName>,<localFolder>,<zipPath>
install a website form a zip file
update:[<projectName>]
update all projects which has a romote path.
updateremotepath:<projectName>,<zipPath>
update a project remote path.
Copyright (c) 2016-2017 WangJinliang
FAQs
A web server running javascript like tomcat.
The npm package corgiserver receives a total of 37 weekly downloads. As such, corgiserver popularity was classified as not popular.
We found that corgiserver demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Rust’s crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.

Security News
/Research
Socket found a Rust typosquat (finch-rust) that loads sha-rust to steal credentials, using impersonation and an unpinned dependency to auto-deliver updates.

Research
/Security Fundamentals
A pair of typosquatted Go packages posing as Google’s UUID library quietly turn helper functions into encrypted exfiltration channels to a paste site, putting developer and CI data at risk.