{"id":13990200,"url":"https://github.com/dhiaayachi/dynx","last_synced_at":"2026-03-01T10:32:57.144Z","repository":{"id":80714124,"uuid":"97635921","full_name":"dhiaayachi/dynx","owner":"dhiaayachi","description":"Dynamic Docker friendly gateway  ","archived":false,"fork":false,"pushed_at":"2017-12-17T22:04:32.000Z","size":73,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-01T01:14:59.381Z","etag":null,"topics":["lua","nginx","openresty","redis","upstream"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dhiaayachi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-07-18T19:28:18.000Z","updated_at":"2023-04-06T21:18:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"1e293924-cb96-4a39-abe3-86baacd39f30","html_url":"https://github.com/dhiaayachi/dynx","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dhiaayachi/dynx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhiaayachi%2Fdynx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhiaayachi%2Fdynx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhiaayachi%2Fdynx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhiaayachi%2Fdynx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dhiaayachi","download_url":"https://codeload.github.com/dhiaayachi/dynx/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhiaayachi%2Fdynx/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29966826,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T09:33:09.965Z","status":"ssl_error","status_checked_at":"2026-03-01T09:25:48.915Z","response_time":124,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["lua","nginx","openresty","redis","upstream"],"created_at":"2024-08-09T13:02:27.315Z","updated_at":"2026-03-01T10:32:57.131Z","avatar_url":"https://github.com/dhiaayachi.png","language":"Lua","funding_links":[],"categories":["Lua"],"sub_categories":[],"readme":"# dynx\n[![Build Status](https://travis-ci.org/dhiaayachi/dynx.svg?branch=master)](https://travis-ci.org/dhiaayachi/dynx)\n\n[![Coverage Status](https://coveralls.io/repos/github/dhiaayachi/dynx/badge.svg?branch=master)](https://coveralls.io/github/dhiaayachi/dynx?branch=master)\n\nDynamic Docker friendly gateway  \n\nThe purpose of the project is to provide a dynamically configurable gateway that is easilly deployable in a docker swarm enviroment.\n\n\n### Requirements:\n- Offer dynamic routing \n- configurable through an easy to use rest api\n- No down time to relad configuration\n- configuration should be shared by all the nodes but no context is shared between nodes (No node to node communication)\n- ...\n\n### Current solution:\nThe current solution use openresty (NGINX based scriptable gateway) with a redis as a Database. It's based on dns\nThe NGINX have 2 servers configured:\n- server listening on 8888 is for configuration and is used to push an upstream to a redis List ( the key is the desired location/API)\n- server listening on 8666 have a wildcard location that will execute a lua (rewrite) script to find the upstream, based on the path \n  and rewrite it to the configured upstream\nThe current solution is based on https://github.com/tes/lua-resty-router\n  \n### TODO\n- Update the README to add a demo and how to deploy\n- ~~Add the ability to remove a location~~\n- Add the ability to configure multiple upstream for one location (load balancing)\n- ~~Add a pipeling with tests (specially for LUA scripting)~~\n- Add the ability to delete all locations\n- ~~Add unit test framework for the lua libraries~~\n- Write documentation with examples and use cases\n- Add swagger documentation for the API\n- Add an etcd backend support\n- Add regex support for upstream\n- ...\n\n\n # Join the team \n Do you want to collaborate? Join the project at https://crowdforge.io/projects/261\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhiaayachi%2Fdynx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdhiaayachi%2Fdynx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhiaayachi%2Fdynx/lists"}