This file contains 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
<% if @config[:private_ip] %> | |
( | |
cat <<'EOP' | |
# The loopback interface | |
auto lo | |
iface lo inet loopback | |
# Configuration for eth0 and aliases | |
# This line ensures that the interface will be brought up during boot. |
This file contains 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 redis, os | |
HOST = os.getenv("HOST", "localhost") | |
PORT = os.getenv("PORT", 6379) | |
r = redis.StrictRedis(host=HOST, port=PORT) | |
cnames_app = r.keys("cname:*") | |
for cname_app in cnames_app: | |
cname = r.get(cname_app) |
This file contains 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 pymongo, redis, os | |
REDIS_HOST = os.getenv("REDIS_HOST", "localhost") | |
REDIS_PORT = os.getenv("REDIS_PORT", 6379) | |
MONGO_HOST = os.getenv("MONGODB_HOST", "localhost") | |
MONGO_PORT = os.getenv("MONGODB_PORT", 27017) | |
redis = redis.StrictRedis(host=REDIS_HOST, port=REDIS_PORT) | |
cnames = redis.keys("cname:*") |
This file contains 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 pymongo, redis, os | |
REDIS_HOST = os.getenv("REDIS_HOST", "localhost") | |
REDIS_PORT = os.getenv("REDIS_PORT", 6379) | |
MONGO_HOST = os.getenv("MONGODB_HOST", "localhost") | |
MONGO_PORT = os.getenv("MONGODB_PORT", 27017) | |
redis = redis.StrictRedis(host=REDIS_HOST, port=REDIS_PORT) | |
cnames = redis.keys("cname:*") |
This file contains 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
hooks: | |
build: | |
- bundle exec rake assets:precompile | |
restart: | |
before: | |
- bundle exec rake db:migrate | |
healthcheck: | |
path: /users/sign_in |
This file contains 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
# see dh_installdeb(1) | |
# Automatically added by dh_installinit | |
if [ -x "/etc/init.d/gandalf-server" ]; then | |
if [ ! -e "/etc/init/gandalf-server.conf" ]; then | |
update-rc.d gandalf-server defaults >/dev/null | |
fi | |
fi | |
# End automatically added section | |
# Automatically added by dh_installinit | |
update-rc.d -f gandalf-server remove >/dev/null || exit $? |
This file contains 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
#!/usr/bin/env python | |
import pymongo, redis, os | |
REDIS_HOST = os.getenv('REDIS_HOST', 'localhost') | |
REDIS_PORT = os.getenv('REDIS_PORT', 6379) | |
MONGO_HOST = os.getenv('MONGODB_HOST', 'localhost') | |
MONGO_PORT = os.getenv('MONGODB_PORT', 27017) | |
mongo = pymongo.MongoClient(MONGO_HOST, MONGO_PORT) |
This file contains 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 -el | |
while read oldrev newrev refname | |
do | |
COMMIT=${newrev} | |
done | |
generate_archive() { | |
url="${ARCHIVE_SERVER_WRITE}/" | |
result=`curl -sNd "path=${1}&refid=${2}" $url` |
This file contains 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
server { | |
listen 80 default; | |
server_name _; | |
client_max_body_size 0; | |
rewrite ^ https://$http_host$request_uri? permanent; | |
} | |
server { | |
listen 443 default ssl; | |
server_name *.example.com; |
This file contains 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
server { | |
listen 443 default ssl; | |
server_name *.example.com; | |
ssl_certificate /etc/nginx/ssl/wildcard.example.com.crt; | |
ssl_certificate_key /etc/nginx/ssl/wildcard.example.com.key; | |
ssl_session_cache shared:SSL:10m; | |
ssl_session_timeout 5m; | |
location / { |