I have a self-hosted SonarQube instance, behind a proxy.
I want to include the badges on my private GitHub repo's readme.md. This repo is only accessed by individuals behind the proxy so they won't have issues viewing the images.
However, GitHub is converting them to URLs like https://camo.githubusercontent.com/blahblahblah
.
These all render as broken images, checking the console camo.githubusercontent.com is returning 404s for my images, presumably because camo can't see the images.
I understand Github does this for reasons of anonymity and caching but it's quite annoying. Searching online reveals a lot of frustration with GitHubs behaviour on this but it's mostly aimed at their excessive caching and the solution seems to be setting headers by the image provider. However, we don't want to expose the images to camo.githubusercontent.com or anyone else.
I have tried adding images using markdown format and <img src=""> but no dice.
How can we get GitHub to serve images that GitHub can't see, but the client can?