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
| # Thin serving Rails. | |
| upstream app_server { | |
| server 127.0.0.1:3050 fail_timeout=0; | |
| } | |
| # SSL/TLS certificates - the key should be 4096 bit generated with: 'openssl genrsa -des3 -out server.key 4096' | |
| ssl_certificate_key /var/app/deploy/www.thisisatest.com.key; | |
| ssl_certificate /var/app/deploy/www.thisisatest.com.chained.crt; | |
| # Ideally we'd have only TLSv1.2, but that compromises client support significantly |
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 | |
| set -euo pipefail | |
| : ${AWS_CREDENTIALS_FILE="$HOME/.aws/credentials"} | |
| : ${STS_SESSION_DURATION=36000} | |
| sts_keychain_get_session_token() { | |
| echo generating temporary credentials via sts >&2 | |
| aws-keychain exec $1 \ |
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
| class String | |
| def undent | |
| gsub(/^.{#{slice(/^ +/).length}}/, '') | |
| end | |
| end | |
| #Usage: | |
| test = <<-EOS.undent | |
| testing unindent | |
| ..another line |
OlderNewer