A lightweight http to https redirector.
1.0K
nginx-https-redirect
Overview: nginx-https-redirect is a lightweight, multi-architecture Docker image based on the official Alpine Nginx image. It serves a simple but essential function: redirecting all HTTP traffic to HTTPS, preserving the original hostname and URI.
This image is ideal for use cases where security best practices require enforcing HTTPS access, such as behind load balancers or reverse proxies that route HTTP traffic to this container for redirection.
Key Features: Multi-architecture support: Built for both amd64 and arm64, ensuring compatibility across a wide range of hardware platforms.
Minimal and efficient: Based on Alpine Linux and the official Nginx image, keeping image size and resource use low.
Simple configuration: Uses a single server block configuration to redirect all HTTP requests to HTTPS with a 301 permanent redirect.
Easy integration: Works well with OCI Load Balancer, Docker Swarm, Kubernetes, and other container orchestration platforms by forwarding HTTP traffic to this container for seamless redirection.
Usage: Run the container on host port 8082:
docker run -d --name http-redirect -p 8082:80 djamesbraun/nginx-https-redirect:latest
This command exposes the redirect service on port 8082, serving a permanent redirect to HTTPS for all incoming HTTP requests.
Content type
Image
Digest
sha256:acfeea27c…
Size
21.4 MB
Last updated
about 1 year ago
docker pull djamesbraun/nginx-https-redirect