Giter Club home page Giter Club logo

docker-tls-proxy's Introduction

docker-tls-proxy

License GitHub Issues GitHub Stars GitHub Forks Docker Build Docker Build Status Docker Pulls Twitter

A simple reverse proxy using NGINX in Docker for terminating TLS/SSL.

Usage

Build

$ docker build -t flaccid/tls-proxy .

Run

An example:

docker run \
  -itd \
  -e UPSTREAM_HOST=icanhazip.com \
  -e FORCE_HTTPS=true \
  -e ENABLE_HTTP2=true \
  -e ENABLE_WEBSOCKET=true \
  -e SELF_SIGNED=true \
  -p 80:80 \
  -p 443:443 \
    flaccid/tls-proxy

Runtime Environment Variables

There should be a reasonable amount of flexibility using the available variables. If not please raise an issue so your use case can be covered!

  • TLS_CERTIFICATE - the TLS/SSL certificate (x509), with chain if needed
  • TLS_KEY - the TLS/SSL key (x509)
  • SELF_SIGNED - generate and use a self-signed certificate (true or false, default is false)
  • SELF_SIGNED_SUBJECT - the subject DN (distinguished name) for the generated self-signed certificate
  • FORCE_HTTPS - force (redirect plain HTTP requests) HTTPs (true or false, default is false)
  • SERVER_NAME - the server name to listen with (default is _ which is any host name)
  • LISTEN_PORT - listen port for the NGINX SSL port (default is 443)
  • UPSTREAM_HOST - the hostname or IP to reverse proxy to (default is localhost)
  • UPSTREAM_PORT - the upstream host's port (default is 80)
  • ENABLE_WEBSOCKET - enable WebSocket support i.e. ws[s]:// (default is false)
  • ENABLE_HTTP2 - enable HTTP/2 support (default is false)

Push to Docker Hub

$ docker push flaccid/tls-proxy

License and Authors

Copyright 2017, Chris Fordham

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

docker-tls-proxy's People

Contributors

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