Skip to content

Latest commit

 

History

History
65 lines (45 loc) · 2.27 KB

README.md

File metadata and controls

65 lines (45 loc) · 2.27 KB

Qnets Auth Center

Qnets SSO Server, Based on JWT

English · 中文

Quick Start

Environment Variables

Incomplete environment variables will result in service unavailability. Please go to supplement

Development Env · Production Env

  • NODE_PORT:Service port, default 4800
  • DB_NAME:MySQL database name, default test
  • DB_HOST:MySQL database host, default localhost
  • DB_PORT:MySQL database port, default 3306
  • DB_USER:MySQL database user, default root
  • DB_PASSWORD:MySQL database password, default 123456
  • ACCESS_TOKEN_SECRET_KEY:Access token secret key
  • REFRESH_TOKEN_SECRET_KEY:Refresh token secret key
  • ACCESS_TOKEN_EXPIRES_IN:Access token expiration time, default 1小时
  • REFRESH_TOKEN_EXPIRES_IN:Refresh token expiration time, default 7天
  • SMS_APP_ID:Tencent Cloud SMS Application ID
  • SMS_SIGN_NAME:Tencent Cloud SMS Signature Content
  • SMS_TEMPLATE_ID:Tencent Cloud SMS Template ID
  • SMS_SECRET_ID:Tencent Cloud SMS SecretId
  • SMS_SECRET_KEY:Tencent Cloud SMS SecretKey
  • SMS_REGION:Tencent Cloud SMS Region

Development

$ yarn
$ yarn dev

Production

$ yarn
$ yarn prd

API

API Document

Star History

Star History Chart

Contributors

License

MIT