From 476635219bc64a10b76df131486f00dc515fc34f Mon Sep 17 00:00:00 2001 From: root Date: Fri, 26 Dec 2014 09:33:20 +0100 Subject: [PATCH] worked on README.md, script generates temp dir --- README.md | 5 +++++ nginx_proxy.py | 2 ++ 2 files changed, 7 insertions(+) diff --git a/README.md b/README.md index cc893ae..59a0937 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,8 @@ # Automated Nginx reverse Proxy for Docker Webservices +## Requirements +1. installed nginx +2. adapted nginx configuration +3. docker daemon must be configured to listen to TCP port +4. existing /tmp/nginx to store proxy files diff --git a/nginx_proxy.py b/nginx_proxy.py index 14180bd..63e2181 100755 --- a/nginx_proxy.py +++ b/nginx_proxy.py @@ -112,6 +112,8 @@ def handle_event(event): print('HUPing nginx') os.kill(pid, signal.SIGHUP) +os.mkdir(target_path) + pid = get_pid() conn = http.client.HTTPConnection("localhost:2375")