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.
- Host: GitHub
- URL: https://github.com/ptaas-tool/gateway
- Owner: ptaas-tool
- Created: 2023-04-15T10:02:26.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-12-29T13:41:38.000Z (over 2 years ago)
- Last Synced: 2025-12-31T18:30:17.562Z (6 months ago)
- Topics: automated-pentesting, go, golang, network, network-security, pentesting, python, python3
- Language: Go
- Homepage:
- Size: 363 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PTaaS 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
```