Sign inSign up

ibmgpn/platform-security

By ibmgpn

Updated over 5 years ago

Image
0

3.9K

ibmgpn/platform-security repository overview

GPN Security API module

Getting started

Login to the private artifactory (ask maintainers for credentials):

npm login

Install dependencies:

npm i

Initialize DB structure:

npm run db-sync

Run in development mode:

npm run dev

Run in production mode:

npm start

Configuration

Configuration could be performed by creation of the environment specific configuration files or by defining environment variables.

Database:
    DB_NAME         -   Name. Default: gpn-security.
    DB_HOST         -   Host. Default: localhost.
    DB_PASSWORD     -   Password. Default: 1qazse4rfv.
    DB_PORT         -   Port. Default: 30933.
    DB_SCHEMA       -   Schema. Default: public.
    DB_USER         -   User. Default: admin.
Server:
    PORT                        -   Server port. Default: 80.
    PUBLIC_STATIC_FILES_FOLDER  -   Public static files folder. Default: public.
    PUBLIC_STATIC_FILES_PATH    -   Public static files path. Default: /.
Authentication and authorization:
    AUTH_SECRET                     -   Secret key.
    AUTH_TOKEN_EXPIRATION_TIME      -   Authentication token expiration time. Default: 1h.
API:
    API_PREFIX      -   Api prefix. Default: api.
Swagger:
    SWAGGER_PREFIX      -   Swagger portal prefix. Default: api-doc.

Tag summary

Content type

Image

Digest

Size

204.9 MB

Last updated

over 5 years ago

docker pull ibmgpn/platform-security