Public Repository

Last pushed: a year ago
Short Description
Reverse proxy for Windows containers using IIS URL rewriting
Full Description

Work in progress
A reverse proxy implemented using the IIS URL rewrite module. Does HTTPS offload (currently creates a self signed certificate).
Usage:
$jsonstring = Get-Content "$PSScriptRoot\servers.json" -Raw
$jsonstring = $jsonstring -replace '"','\"'
docker run -d --name iisrp -p 443:443 hbuckle/iis-reverse-proxy "$jsonstring" "mydomain.com"

Where servers.json is a json array with the following format

[
{
"externalHostname": "server1",
"containerHostname": "server1",
"appPath": "somepath"
},
{
"externalHostname": "server1",
"containerHostname": "server1",
"appPath": "somepath"
}
]

This will create a reverse proxy with an external hostname that redirects to http://<containerhostname>/<appPath>
You will need to create the other containers with hostnames using the the -h option on docker run
See here for a complete example
https://github.com/hbuckle/NuGetServer/blob/master/Docker/Docker-Cluster-Run.ps1

Docker Pull Command
Owner
hbuckle

Comments (0)