diff --git a/README.md b/README.md index 2e677d8..5ce68c2 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,7 @@ Feel free to contribute and to fork ! # Python ntfy.py ## Description: This script is used to watch the github repos and send a notification to the ntfy server when a new release is published. + It can aloso watch Docker Hub repos and do the same as github. ## Utilisation: auth and ntfy_url are required to be set as environment variables. diff --git a/nginx.conf b/nginx.conf index 57a8ca7..88d6f7f 100644 --- a/nginx.conf +++ b/nginx.conf @@ -35,5 +35,26 @@ http { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } + location /app_docker_repo { + proxy_pass http://127.0.0.1:5000; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + } + location /watched_docker_repos { + proxy_pass http://127.0.0.1:5000; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + } + location /delete_docker_repo { + proxy_pass http://127.0.0.1:5000; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + } } }