Public Repository

Last pushed: 2 years ago
Short Description
A very simple nginx proxy service to download files from github.
Full Description

Needed a proxy service for Azure ARM to download files from a github private repo. Azure ARM templates don't support basic auth and you can't set a header.

This service takes the following url params and returns the raw file from github

  • owner - Repo Owner
  • repo - Repo Name
  • path - Path to file (default branch)
  • access_token - Personal Access Token, generate in your settings.

Nginx expects /ssl/cert.pem and /ssl/key.pem

docker run -d \
-p 443:443 \
-v 'cert.pem:/ssl/cert.pem' \
-v 'key.pem:/ssl/key.pem' \
jgreat/github-api-proxy

To use/test:

curl -v 'https://github.example.com/?owner=jgreat&repo=azure&path=/vnet/azuredeploy.json&access_token=XXXXXXXXXXXXXXXXXXXXXX'
Docker Pull Command
Owner
jgreat

Comments (0)