Skip to content

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

License

Notifications You must be signed in to change notification settings

OliverOlg/nginx-module-stream-sts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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;
    }
}




About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 100.0%