Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
#!/usr/bin/env python | |
""" | |
Set the base-urls for your Magento 2 installation to support only https. | |
To use, download the file and make it executable. Then run: | |
./change_magento2_base_urls_to_https.py | |
After use, check your base-urls by issuing: | |
n98-magerun2 sys:store:config:base-url:list | |
This script requires n98-magerun2. |
Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
# The full public facing url | |
#root_url = %(protocol)s://%(domain)s:%(http_port)s/ | |
root_url = http://localhost:80/grafana/ |
class my_fw::pre { | |
# Disable due to selective purges of firewallchain | |
# resources { "firewall": | |
# purge => true | |
# } | |
# Avoid removing Docker rules: | |
firewallchain { 'FORWARD:filter:IPv4': | |
purge => true, |
#!/bin/bash | |
# Configuration for the script | |
POSTFIX_CONFIG=/etc/postfix/main.cf | |
POSTFIX_SASL=/etc/postfix/sasl_passwd | |
function confirm () { | |
read -r -p "${1:-Are you sure? [Y/n]} " response | |
if [[ $response == "" || $response == "y" || $response == "Y" ]]; then | |
echo 0; |
# This is an annotated subset of the Nginx configuration from our Magento production platform @ www.hypernode.com | |
# See https://www.byte.nl/blog/magento-cacheleak-issue | |
# !!!! If you are a Hypernode customer, do not use this config as it will result in duplicate statements. !!!!! | |
user app; | |
worker_processes 4; | |
pid /var/run/nginx.pid; | |
events { |
#!/bin/sh -x | |
# ================================== | |
# iptables default configuration script | |
# | |
# - this locks down our servers port access | |
# ================================== | |
# install fail2ban | |
sudo apt-get update |
index index.php index.html index.htm; | |
upstream phpfcgi { | |
server 127.0.0.1:9000; | |
} | |
upstream memcached { | |
server example.compute-1.amazonaws.com:11211 max_fails=1 fail_timeout=2s; | |
server example.compute-1.amazonaws.com:11211 max_fails=1 fail_timeout=2s; | |
} |
## Check if variable is defined | |
# Replaces has_variable?(var) and if @var variations. | |
# include?() pattern from @Jan_vStone. | |
# | |
# scope.lookupvar return values for undefined variables: | |
# Puppet 3.x: nil | |
# Puppet 2.6.x: :undefined | |
# Puppet 2.7.x: :undefined | |
<% if ! [:undefined, nil, ''].include?(masquerade_address = scope.lookupvar('ftp::masquerade_address')) -%> | |
MasqueradeAddress <%= masquerade_address %> |