Skip to content

Instantly share code, notes, and snippets.

@ghooghe
Forked from nwgat/letsencrypt.yourdomain.conf
Created December 18, 2015 14:10
Show Gist options
  • Save ghooghe/ce9b00af2ba4d616d72d to your computer and use it in GitHub Desktop.
Save ghooghe/ce9b00af2ba4d616d72d to your computer and use it in GitHub Desktop.
lighttpd letsencrypt ssl conf
$SERVER["socket"] == ":443" {
ssl.engine = "enable"
ssl.pemfile = "/etc/letsencrypt/live/yourdomain/ssl.pem"
ssl.ca-file = "/etc/letsencrypt/live/yourdomain/fullchain.pem"
ssl.dh-file = "/etc/ssl/certs/dhparam.pem"
ssl.ec-curve = "secp384r1"
ssl.honor-cipher-order = "enable"
ssl.cipher-list = "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH"
ssl.use-compression = "disable"
setenv.add-response-header = (
"Strict-Transport-Security" => "max-age=63072000; includeSubdomains; preload",
"X-Frame-Options" => "DENY",
"X-Content-Type-Options" => "nosniff"
)
ssl.use-sslv2 = "disable"
ssl.use-sslv3 = "disable"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment