Giter VIP home page Giter VIP logo

mod_grpcbackend's Introduction

mod_grpcbackend

This module provides a way for apache to directly interact with a grpc backend service. Using this you can add a webinterface to your grpc service without any additional libraries or complex configuration.

Building

In order to build mod_grpcbackend on your system you need to install some required packages:

  • build-essential
  • protoc
  • libprotobuf
  • libgrpc++
  • apache2-dev

If you have installed all required software checkout this repository and run

make

make install

and add the following line somewhere in your apache config:

LoadModule grpcbackend_module /usr/lib/apache2/modules/mod_grpcbackend.so

Configuration

Currently mod_grpcbackend provides only 4 configuration directives, but only 2 are required for a working configuration. In addition to enabling grpcbackend using GrpcEnabled you need to set the handler to grpcbackend if you want a file to get handled by grpcbackend. See SetHandler and AddHandler for more information.

GrpcEnabled Directive

If you want a directory to be handled by a grpc backend, you need to set this directive to on.

GrpcHost Directive

This allows you to set the grpc service host and port apache will forward your requests to.

GrpcConnectTimeout Directive

This optional directive allows you to set a timeout in milliseconds for connecting to your backend service.

GrpcCallTimeout Directive

This optional directive allows you to set a timeout in milliseconds for each call to your backend service.

mod_grpcbackend's People

Contributors

thalhammer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

dendisuhubdy

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.