Created
July 19, 2014 09:52
-
-
Save mcansky/4e81bf6896f4954a2185 to your computer and use it in GitHub Desktop.
Hipache config
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": { | |
"accessLog": "/var/log/hipache/access.log", | |
"pidFile": "/var/run/hipache.pid", | |
"workers": 5, | |
"maxSockets": 100, | |
"deadBackendTTL": 90, | |
"port": 80, | |
"bind": ["0.0.0.0"], | |
"https": { | |
"port": 443, | |
"bind": ["0.0.0.0"], | |
"key": "/etc/ssl/private/ssl.key", | |
"cert": "/etc/ssl/certs/ssl.crt" | |
} | |
}, | |
"driver": "redis://<redis_host>:6379/0" | |
} |
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
# | |
http { | |
server { | |
# https config, serving the connections to a unicorn on socket (ssl stops at hipache) | |
} | |
# http config, redirects to https (force ssl) | |
server { | |
listen 80; | |
client_max_body_size 4G; | |
return 301 https://$host$request_uri; | |
} | |
} |
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
redis <redis_host>:6379> lrange frontend:www.example.com 0 -1 | |
1) "website" | |
2) "http://<private_ip1>:80" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment