diff --git a/config/nginx/website_dev.conf b/config/nginx/website_dev.conf index fd975f4f1..f85054996 100644 --- a/config/nginx/website_dev.conf +++ b/config/nginx/website_dev.conf @@ -87,3 +87,13 @@ server { return 302 https://iatiwebsitedev.blob.core.windows.net/dev-iati-website$1; } } + + +# Proxy the prometheus port from the destination server +server { + listen 9158; + + location / { + proxy_pass http://XX.XX.XX.XX:9157; + } +} diff --git a/config/nginx/website_prod.conf b/config/nginx/website_prod.conf index 8564db667..dd1b680c9 100644 --- a/config/nginx/website_prod.conf +++ b/config/nginx/website_prod.conf @@ -87,3 +87,13 @@ server { return 302 https://cdn.iatistandard.org/prod-iati-website$1; } } + + +# Proxy the prometheus port from the destination server +server { + listen 9158; + + location / { + proxy_pass http://XX.XX.XX.XX:9157; + } +}