Skip to content

ptaas-tool/gateway

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PTaaS Gateway

GitHub release (with filter)

Gateway is the PTaaS restful API for handling client http requests. This module handles the user interface logic in order to communicate with base-api and ftp-server. It is the system main gateway app.

Image

Gateway app docker image address:

docker pull amirhossein21/ptaas-tool:gateway-v0.X.X

configs

Make sure to create config.yaml file with the following variable init:

http:
  port: 8080
  core: 'http://localhost:9090/api'
  core_secret: 'secret'
  dev_mode: true
jwt:
  private_key: 'super'
  expire_time: 180 # minute
mysql:
  host: 'localhost'
  port: 3306
  user: root
  pass: ''
  database: 'apt'
  migrate: false
ftp:
  host: 'http://localhost:9091'
  secret: 'secret'
  access: 'access'

Setup

Setup gateway service in docker container with following command:

docker run -d \
  -v type=bind,source=$(pwd)/config.yaml,dest=/app/config.yaml \
  -p 80:80 \
  amirhossein21/ptaas-tool:gateway-v0.X.X