GithubHelp home page GithubHelp logo

dbhys / net-simplesidecar Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 25 KB

This is a project to build a docker image, provide many functions to process net traffic.

Dockerfile 4.17% Shell 3.67% Lua 92.16%

net-simplesidecar's Introduction

DBHYS-NET Simple Sidecar

What's in Simple Sidecar

This is a project to build a docker image, this image provide following functions:

  1. we can easily migrate traffic from one port to another, just send a reload(http://localhost:8008/sidecar/config/reload?secret=xxx) request.
  2. We can also help the resource server verify the jwt token issued by the oidc provider through configuration.
  3. We can also enable apm configuration to help resource server collect metrics to apm.
  4. May be many application don't have access logs, this image will collect access logs by default and keep them for 7(you can change the crontab) days.

More about this project

It is base on openresty and dbhys/openresty-stage images.

How to use

First:

We add env: $PREFIX, which should be dir your code in and is the same as openresty's $prefix or ${prefix}, you should add $PREFIX dir to the lua_package_path in your conf/nginx.conf. the example is in the conf/nginx.conf, the default value of $PREFIX is /usr/local/stage.

Second:

Copy config/config.yaml from git or from the container use docker command:


docker run -d --rm --name temp dbhys/net-simplesidecar:$verison

docker cp temp:/usr/local/stage/config/config.yaml $yourdir

docker stop temp

Third:

Mount your config dir to the container:

docker run -d --name sidecar -p 80:80 -v yourconfigdir:/usr/local/stage/config/ dbhys/net-simplesidecar:$verison

net-simplesidecar's People

Watchers

Milas avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.