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 httplib2, sys, os, base64, hashlib, hmac, time | |
import json as simplejson | |
from urllib import urlencode, quote_plus | |
aws_key = '' | |
aws_secret_key = '' | |
hostname = open('/etc/hostname').read().rstrip() | |
# XXX: For now, those two names are same. but should be distinguished. | |
instanceid = hostname |
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
location / { | |
uwsgi_pass unix:app.sock; | |
post_action @post_action; | |
} | |
location @post_action { | |
proxy_pass http://dst_host:dst_port; | |
} |
NewerOlder