Laravel Community Tools by Tighten

All Recipes

144 recipes available

fail2ban config

Create a fail2ban Configfile and restart the fail2ban-service. You should run the script as root.

cd /etc/fail2ban

printf '%s\n' \
		'[INCLUDES]' \
7 years ago
Ralf

Elasticsearch 5x

install elasticsearch 5x versions

echo ">> Installing Elastic GPG Key"
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -

sudo apt-get install apt-transport-https
7 years ago
saimemre

Install imagick ext for PHP 7.2

This script will install imagick 3.4.3 and add the extension to your php.ini file, for servers running PHP 7.2

#!/bin/bash
if [ "$EUID" -ne 0 ]
  then echo "Please run as root"
  exit
7 years ago
slashequip

Install imagick ext for PHP 7.1

This script will install imagick 3.4.3 and add the extension to your php.ini file, for servers running PHP 7.1

#!/bin/bash
if [ "$EUID" -ne 0 ]
  then echo "Please run as root"
  exit
7 years ago
slashequip

Add cloudflare real ip config to nginx "updated - 2018-06-08"

Adds a list of cloudflare ip addresses so your app will receive the real ip address

cat >/etc/nginx/conf.d/cloudflare-real-ip.conf <<"EOF"
# CloudFlare IP addresses
# > IPv4
set_real_ip_from 103.21.244.0/22;
7 years ago
matthewselby

Artisan Helper

Pick

Adding `art` for artisan to the bash profile for easy access. It will work in envoyer style deploys looking for artisan in `./current` and `./default/current` directories.

#!/bin/bash

# Make using artisan a little easier 
#
7 years ago
rjksn

Install ElasticSearch 6.x

Updated Elasticsearch version to 6.x

echo ">> Installing Elastic GPG Key"
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -

echo ">> Install apt-transport-https"
8 years ago
naorayk

CraftCMS Server Setup

Check https://github.com/dative/craft-do-forge-recipe for more information

#!/bin/bash

# Craft CMS Server Setup 
#
8 years ago
webrgp

Show SSL Expiration Dates

Run as root as the Nginx conf files aren't accessible by the forge user by default. This will print a table of your sites with SSL enabled and when the certificate will expire. Useful for auditing.

#!/bin/bash
printf "%-50s | %-25s\n" "SITE" "EXPIRES"
echo "-------------------------------------------------------------------"
for site in `grep -hR "ssl_certificate /etc/nginx/" /etc/nginx/sites-enabled/|awk '/ssl_certificate/ {print $2}'`; do
8 years ago
mikedotexe

Install MySQL Server 5.6

This one-line script will install the MySQL database server.

 apt-get install mysql-server-5.6.
8 years ago
DarkRoast

Install ElasticSearch 5.x

Updated Elasticsearch version to 5.x

echo ">> Installing Elastic GPG Key"
wget -O - http://packages.elasticsearch.org/GPG-KEY-elasticsearch | apt-key add -

echo ">> Install apt-transport-https"
8 years ago
enflow

Install NetData

Installs NetData so you can monitor your servers. It is on port 19999, and allows you to view any resources used across the server, along with extension/apt usages. You can monitor Redis, MySQL,...

cd /root
apt-get install -y zlib1g-dev uuid-dev libmnl-dev gcc make git autoconf autoconf-archive autogen automake pkg-config curl
curl -Ss 'https://raw.githubusercontent.com/firehol/netdata-demo-site/master/install-required-packages.sh' >/tmp/kickstart.sh && bash /tmp/kickstart.sh -i netdata-all --dont-wait
git clone https://github.com/firehol/netdata.git --depth=1
8 years ago
darkgoldblade01