Giter Site home page Giter Site logo

oliverolg / nginx-module-stream-sts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from austinbenincasa/nginx-module-stream-sts

0.0 0.0 0.0 11 KB

A Docker repository to compile Alpine NGINX with 'nginx-module-stream-sts' and 'nginx-module-sts'

License: BSD 2-Clause "Simplified" License

Dockerfile 100.00%

nginx-module-stream-sts's Introduction

Docker nginx-module-stream-sts

A Docker repository to compile Alpine NGINX with 'nginx-module-stream-sts' and 'nginx-module-sts'

Description

Will compile Alpine Nginx Container with the following NGINX modules:

The core of the Dockerfile was taken from:

Building

  • Edit or replace the nginx.conf file found in the repo (will not work as-is)
  • Run the following commands to build and run
abenincasa@computer:~/nginx-module-stream-sts$ docker build -t "nginx:stream" .
abenincasa@computer:~/nginx-module-stream-sts$ docker run -p 80:80 -p 443:443 nginx:stream

NGINX Config

The current nginx.config file included in the repo is configured as a TCP Load Balancer. To use the current config file for this purpose edit the server link to point to a backend server(s) and port accepting TCP traffic.

To understand more about NGINX TCP/UDP Load Balancing reference: Nginx Load Balancing

stream {
    server_traffic_status_zone;
    upstream backend {
        # change these to point to your backend servers
        server XXX.XXX.XXX.XXX:443 max_fails=3 fail_timeout=10s;
        server XXX.XXX.XXX.XXX:443 max_fails=3 fail_timeout=10s;
        server XXX.XXX.XXX.XXX:443 max_fails=3 fail_timeout=10s;
    }
    server {
        listen 443;
        proxy_pass backend;
        proxy_next_upstream on;
    }
}




nginx-module-stream-sts's People

Contributors

austinbenincasa 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.