{"action":"created","issue":{"url":"https://api.github.com/repos/miekg/caddy-prometheus/issues/10","repository_url":"https://api.github.com/repos/miekg/caddy-prometheus","labels_url":"https://api.github.com/repos/miekg/caddy-prometheus/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/miekg/caddy-prometheus/issues/10/comments","events_url":"https://api.github.com/repos/miekg/caddy-prometheus/issues/10/events","html_url":"https://github.com/miekg/caddy-prometheus/issues/10","id":152854611,"number":10,"title":"Empty reply from server","user":{"login":"vanthiyathevan","id":1296183,"avatar_url":"https://avatars.githubusercontent.com/u/1296183?v=3","gravatar_id":"","url":"https://api.github.com/users/vanthiyathevan","html_url":"https://github.com/vanthiyathevan","followers_url":"https://api.github.com/users/vanthiyathevan/followers","following_url":"https://api.github.com/users/vanthiyathevan/following{/other_user}","gists_url":"https://api.github.com/users/vanthiyathevan/gists{/gist_id}","starred_url":"https://api.github.com/users/vanthiyathevan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vanthiyathevan/subscriptions","organizations_url":"https://api.github.com/users/vanthiyathevan/orgs","repos_url":"https://api.github.com/users/vanthiyathevan/repos","events_url":"https://api.github.com/users/vanthiyathevan/events{/privacy}","received_events_url":"https://api.github.com/users/vanthiyathevan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-05-03T19:25:17Z","updated_at":"2016-05-04T15:54:10Z","closed_at":null,"body":"I am running this using docker image zzrot/alpine-caddy\r\nThis is my Caddyfile\r\n```\r\nhttps://dashboard.mydomain.com {\r\n  prometheus\r\n  tls /certs/dashboard.mydomain.com.crt /certs/dashboard.mydomain.com.key\r\n  proxy / node1:4000 node2:4000 {\r\n    proxy_header Host {host}\r\n    proxy_header X-Real-IP {remote}\r\n    proxy_header X-Forwarded-Proto {scheme}\r\n    websocket\r\n    except /css /fonts /js /img\r\n  }\r\n  root /node-app/public\r\n  log stdout\r\n  errors stderr\r\n}\r\n```\r\nEvery thing works as expected except for prometheus\r\n\r\nwhen `curl http://localhost:9180/metrics` I get `curl: (52) Empty reply from server` Also if I replace the localhost with the actual IP of the host (I have the port 9180 exposed) I get `connection refused`. Am I missing anything?\r\n"},"comment":{"url":"https://api.github.com/repos/miekg/caddy-prometheus/issues/comments/216910181","html_url":"https://github.com/miekg/caddy-prometheus/issues/10#issuecomment-216910181","issue_url":"https://api.github.com/repos/miekg/caddy-prometheus/issues/10","id":216910181,"user":{"login":"vanthiyathevan","id":1296183,"avatar_url":"https://avatars.githubusercontent.com/u/1296183?v=3","gravatar_id":"","url":"https://api.github.com/users/vanthiyathevan","html_url":"https://github.com/vanthiyathevan","followers_url":"https://api.github.com/users/vanthiyathevan/followers","following_url":"https://api.github.com/users/vanthiyathevan/following{/other_user}","gists_url":"https://api.github.com/users/vanthiyathevan/gists{/gist_id}","starred_url":"https://api.github.com/users/vanthiyathevan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vanthiyathevan/subscriptions","organizations_url":"https://api.github.com/users/vanthiyathevan/orgs","repos_url":"https://api.github.com/users/vanthiyathevan/repos","events_url":"https://api.github.com/users/vanthiyathevan/events{/privacy}","received_events_url":"https://api.github.com/users/vanthiyathevan/received_events","type":"User","site_admin":false},"created_at":"2016-05-04T15:54:10Z","updated_at":"2016-05-04T15:54:10Z","body":"Still same issue after having only prometheus add on using build url\r\nhttps://caddyserver.com/download/build?os=linux&arch=amd64&features=prometheus\r\nThis should have placed prometheus at index 0"}}