- create a slack webhook integration - copy the webhook url
- add following to top of ~/.ssh/config
Host *
PermitLocalCommand yes
- add
LocalCommand
to host entry
Host production.example.com
User ubuntu
# Install dependencies | |
# | |
# * checkinstall: package the .deb | |
# * libpcre3, libpcre3-dev: required for HTTP rewrite module | |
# * zlib1g zlib1g-dbg zlib1g-dev: required for HTTP gzip module | |
apt-get install checkinstall libpcre3 libpcre3-dev zlib1g zlib1g-dbg zlib1g-dev && \ | |
mkdir -p ~/sources/ && \ | |
# Compile against OpenSSL to enable NPN |
; Enable Zend OPcache extension module | |
zend_extension=opcache.so | |
; Determines if Zend OPCache is enabled | |
opcache.enable=1 | |
; Determines if Zend OPCache is enabled for the CLI version of PHP | |
;opcache.enable_cli=0 | |
; The OPcache shared memory storage size. |
# Script for automatic setup of SOCKS proxy through SSH connection. | |
# It automatically teardowns SOCKS configuration before stopping. | |
# It's supposed to work on Mac OS X 10.6+ | |
# | |
# Author: Adam Stankiewicz (@sheerun) | |
# | |
[[ -n "$1" ]] || { echo "Usage: proxy [email protected]"; exit 1; } | |
# get service GUID and NAME (like Wi-Fi) to set SOCKS proxy |
Host *
PermitLocalCommand yes
LocalCommand
to host entryHost production.example.com
User ubuntu
Prerequisites : the letsencrypt CLI tool
This method allows your to generate and renew your Lets Encrypt certificates with 1 command. This is easily automatable to renew each 60 days, as advised.
You need nginx to answer on port 80 on all the domains you want a certificate for and 443 as well if you redirect everything to this port. Then you need to serve the challenge used by letsencrypt on /.well-known/acme-challenge
.
Then we invoke the letsencrypt command, telling the tool to write the challenge files in the directory we used as a root in the nginx configuration.
I redirect all HTTP requests on HTTPS, so my nginx config looks like :
server {
# | |
# Upstart Configuration File for Ubuntu 14.10 - to run syncthing | |
# | |
# Created 27 Dec 2014 - initial file written based on version from | |
# Syncthing forums here: | |
# https://forum.syncthing.net/t/keeping-syncthing-running-ubuntu-upstart/30 | |
# | |
# | |
# BEFORE USE: change: | |
# |