Back to Recipes
mattstauffer
2 recipes shared
Install ElasticSearch 1.4
Forked from @artisangoose Recipe #9; updated Java & Elasticsearch version, and added scheduler to boot Elasticsearch when server reboots
echo ">> Installing Elastic GPG Key"
wget -O - http://packages.elasticsearch.org/GPG-KEY-elasticsearch | apt-key add -
echo ">> Adding deb package"
11 years ago
mattstauffer
Change all SSL sites on this server to use HSTS
PickHSTS is a setting you can enable on your SSL-enabled domains to ensure browsers will never connect to the non-secured version of your web site. https://https.cio.gov/hsts/ If you run this scr...
# Set the text we want to insert into each record
INSERT='\ # Enable HSTS (added manually)\n add_header Strict-Transport-Security "max-age=31536000" always;\n'
# For every site in sites-available without the phrase "HSTS" in it...
4 years ago
mattstauffer