Skip to content
forked from orlabs/orange

OpenResty Gateway for API Monitoring and Management.

Notifications You must be signed in to change notification settings

kanghuli/orange

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Orange

API Gateway based on OpenResty.

Install

Clone the repo to local.

Check the sample config file orange.conf first:

{
  "plugins": [//available plugins. remove one if you do not need it.
    "stat",
    "monitor",
    "redirect",
    "rewrite",
    "waf",
    "divide"
  ],

  "store": "file",//which `store` to use, `file` or `mysql`
  "store_file": {//configuration if you choose `file` store
    "path": "./data.json",
    "desc":"file db configuration"
  },

  "store_mysql": {//configuration if you choose `mysql` store
    "timeout": 5000,
    "connect_config": {
      "host": "127.0.0.1",
      "port": 3306,
      "database": "orange",
      "user": "root",
      "password": "",
      "max_packet_size": 1048576
    },
    "pool_config": {
      "max_idle_timeout": 10000,
      "pool_size": 3
    },
    "desc":"mysql configuration"
  }
}

If you just need a single Orange node, set store with file, then your configuration will be stored in store_file.path with json format.

Otherwise, if you need share the configuration data of Orange plugins among different Orange nodes, set store with mysql and import install/orange-${version}-${min_version} to MySQL and modify the store_mysql config as you want.

Then just type sh start.sh to start Orange. Maybe you should check the start script and customize it for you own need.

Documents

Find all about Orange on Documents Website. There is only a Chinese version for now.

See also

The architecture is highly inspired by Kong.

About

OpenResty Gateway for API Monitoring and Management.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 49.1%
  • JavaScript 27.7%
  • HTML 17.2%
  • CSS 4.8%
  • Nginx 1.1%
  • Shell 0.1%