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")