Reverse proxy for Windows containers using IIS URL rewriting
1.7K
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:/// 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
Content type
Image
Digest
Size
4.2 GB
Last updated
almost 10 years ago
docker pull hbuckle/iis-reverse-proxy