Redirect http requests to https.
2.0K
The Dockerfile:
FROM nginx
RUN echo "server {\nlisten 80;\nreturn 301 https://\$host\$request_uri;\n}" > /etc/nginx/conf.d/default.conf
To run it: docker run -d -p 80:80 peopleperhour/httpsonly
Content type
Image
Digest
sha256:b4744225d…
Size
16.4 MB
Last updated
almost 10 years ago
docker pull peopleperhour/httpsonly