Lego SSL Certificate Utility on Alpine Linux
3.8K
Lego SSL Certificate Utility on Alpine Linux
This docker is designed to obtain a valid ACME SSL certificate using Lego
vi /etc/rc.d/rc.nginx
# Redirect http requests to https
#
listen $IPV4:$PORT default_server;
listen [$IPV6]:$PORT default_server;
location ^~ /.well-known/ {
try_files /$request_uri =404;
}
return 302 $ORIGIN\$request_uri;
# deny access to any hidden file (beginning with a .period)
#
location ~ /\.(?!well-known).* { <----
return 404;
}
/etc/rc.d/rc.nginx reload
/boot/config/ssl/certs/certificate_bundle.pem
Content type
Image
Digest
Size
13.4 MB
Last updated
almost 5 years ago
docker pull gpocali/alpine-lego