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.
- 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 themain.py
.
- cd src/NginxDockerProxy
- python -m unittest
- Build & Test:
dbm -build -test
- Run:
dbm -run
- Publish:
dbm -publish