@khronosmoe/gateway
TypeScript icon, indicating that this package has built-in type declarations

1.7.2 • Public • Published

Surgio Gateway

This is a modified version of gateway with support for TLS. By default gateway listens on http port 3000. TLS is turned on only when there is a file tls.yaml.

npm init surgio-store surgio
cd surgio
npm i @khronosmoe/gateway
npm i @surgio/gateway-frontend

Edit tls.yaml

tls_server_config:
  cert_file: server.crt
  key_file: server.key

Edit gateway.js

const gateway = require('@khronosmoe/gateway')

;(async () => {
   const app = await gateway.bootstrap()
})()

Default https port is 3001.

Readme

Keywords

none

Package Sidebar

Install

npm i @khronosmoe/gateway

Weekly Downloads

1

Version

1.7.2

License

MIT

Unpacked Size

274 kB

Total Files

58

Last publish

Collaborators

  • khronosmoe