/NginxDockerProxy

NginxDockerProxy is a simple tool to embed environment variables with nginx.

Primary LanguagePythonMIT LicenseMIT

NginxDockerProxy

Build Status MIT license

NginxDockerProxy is a simple tool to embed environment variables with nginx.

The latest Dockerfile is marked as: hansehe/nginx-docker-proxy:latest

Please have a look at example/nginx.site.conf with this example/Dockerfile example.

Any keys marked with ${key} in a nginx site.conf file will be replaced with matching environment variable keys.

Prerequisites

  • Install DockerBuildManagement buildsystem:
    • pip install DockerBuildManagement
  • Install Dependencies:
    • pip install -r src/requirements.txt
  • Note! Working directory should be src/NginxDockerProxy/ when developing with pycharm etc or running tests or the main.py.

Run Unit Tests Manually

  • cd src/NginxDockerProxy
  • python -m unittest

Build, Test & Publish With DockerBuildManagement

  • Build & Test:
    • dbm -build -test
  • Run:
    • dbm -run
  • Publish:
    • dbm -publish