An open API service indexing awesome lists of open source software.

https://github.com/ptaas-tool/gateway

PTaaS: Gateway API system.
https://github.com/ptaas-tool/gateway

automated-pentesting go golang network network-security pentesting python python3

Last synced: 5 months ago
JSON representation

PTaaS: Gateway API system.

Awesome Lists containing this project

README

          

# PTaaS Gateway

![](https://img.shields.io/badge/language-golang_v1.20-lightblue)
![GitHub release (with filter)](https://img.shields.io/github/v/release/ptaas-tool/gateway)

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:

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

### configs

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

```yaml
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:

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