Skip to content

ajkumar1205/apigw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

apigw

config file

version: 1
threads: 2
pid_file: /tmp/apigw.pid
error_log: /tmp/apigw.log

rps: 1000 # requests per second for rate limiting
addr: "0.0.0.0:8080" # listen address
proxy:
  - path: /check
    tls: false
    protocol: http
    domain:
    targets:
      - ip: "0.0.0.0"
        port: 8081
      - ip: "0.0.0.0"
        port: 8082
  - path: /test
    tls: false
    protocol: http
    domain:
    targets:
      - ip: "0.0.0.0"
        port: 8083
      - ip: "0.0.0.0"
        port: 8084

Run the server

cargo run -- -c config.yaml

About

A simple API-GATEWAY written in Rust over Pingora Framework.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages