Shield
Authentication shield for web apps
Configuration
Configuration is read form config/config.json
.
apps
Define routing or application modules.
- routing (proxy)
{
"name": "Application",
"path": "app",
"alias": "/test/app"
"url": "http://localhost:8080"
}
- application module
{
"name": "Application",
"path": "app",
"module": "app-module",
"config": {
"compress": true
}
}
hostname
Setting to limit listening interfaces.
port
Custom listening port, default is 8080
.
tls
Enables https
module by specifying certificate/key pair in pem
format.
-
key
- private key -
cert
- public certificate -
ca
- certificate issuing authority
sso
Enables third party authentication through json web tokens.
-
url
- handshake server -
cert
- server certificate inpem
format
plugins
Customization of internal services, when you need to pass config it has form of an array [ module, config (optional) ]
-
authentication
- authentication provider- BasicAuthentication (default)
- CertificateAuthentication
-
logging
- custom logging outputasync (morgan, executeSync, config) => {}