This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| user www-data; | |
| worker_processes 4; | |
| pid /var/run/nginx.pid; | |
| events { | |
| worker_connections 1024; | |
| use epoll; | |
| multi_accept on; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| global | |
| log 127.0.0.1 syslog | |
| maxconn 1000 | |
| user haproxy | |
| group haproxy | |
| daemon | |
| defaults | |
| log global |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| user www-data; | |
| worker_processes 4; | |
| pid /var/run/nginx.pid; | |
| events { | |
| worker_connections 1024; | |
| use epoll; | |
| multi_accept on; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| user www-data; | |
| worker_processes 4; | |
| pid /var/run/nginx.pid; | |
| events { | |
| worker_connections 1024; | |
| use epoll; | |
| multi_accept on; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| global | |
| log 127.0.0.1 syslog | |
| maxconn 1000 | |
| user haproxy | |
| group haproxy | |
| daemon | |
| defaults | |
| log global |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # | |
| # Let's Encrypt HAProxy script | |
| # | |
| ################################### | |
| DOMAINS=( | |
| "foo.example.com" | |
| "bar.example.com" | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |