View haproxy.cfg
global
log 127.0.0.1 syslog
maxconn 1000
user haproxy
group haproxy
daemon
tune.ssl.default-dh-param 4096
ssl-default-bind-options no-sslv3 no-tls-tickets
ssl-default-bind-ciphers EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH
View le-renew-haproxy
#!/bin/bash
#
# Let's Encrypt HAProxy script
#
###################################
DOMAINS=(
"foo.example.com"
"bar.example.com"
)
View haproxy.cfg
global
log 127.0.0.1 syslog
maxconn 1000
user haproxy
group haproxy
daemon
defaults
log global
View nginx.conf
user www-data;
worker_processes 4;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
use epoll;
multi_accept on;
View gist:2762912307f41291320e315681e807a1
user www-data;
worker_processes 4;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
use epoll;
multi_accept on;
View letsencrypt.sh
#!/bin/bash
#
# Put in your email and your actual domain name
# Server is for staging/testing not getting live certs
sudo letsencrypt certonly \
--server https://acme-staging.api.letsencrypt.org/directory \
--webroot --webroot-path "/usr/share/nginx/html/" \
--keep-until-expiring \
--text \
View haproxy.cfg
global
log 127.0.0.1 syslog
maxconn 1000
user haproxy
group haproxy
daemon
defaults
log global
View nginx.conf
user www-data;
worker_processes 4;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
use epoll;
multi_accept on;
View build.sbt
import java.io.{ByteArrayOutputStream, PrintWriter}
import sbt.{ProcessBuilder, ProcessLogger}
def runCommand(cmd: Seq[String]): (Int, String, String) = {
val stdout = new ByteArrayOutputStream
val stderr = new ByteArrayOutputStream
val stdoutWriter = new PrintWriter(stdout)
val stderrWriter = new PrintWriter(stderr)
val exitValue = cmd.!(new ProcessLogger {
View build.sbt
import java.io.{ByteArrayOutputStream, PrintWriter}
import sbt.{ProcessBuilder, ProcessLogger}
def runCommand(cmd: Seq[String]): (Int, String, String) = {
val stdout = new ByteArrayOutputStream
val stderr = new ByteArrayOutputStream
val stdoutWriter = new PrintWriter(stdout)
val stderrWriter = new PrintWriter(stderr)
val exitValue = cmd.!(new ProcessLogger {