Skip to content

Instantly share code, notes, and snippets.

View squiel91's full-sized avatar

Ezequiel Santiago Sanchez squiel91

  • Montevideo, Uruguay
View GitHub Profile
@kuleszaj
kuleszaj / gist:1911050
Created February 25, 2012 21:53
Nginx with X-Forwarded-Proto set for SSL
server {
listen 1.2.3.4:443;
server_name railsapp.example.com;
ssl on;
ssl_certificate cert.pem;
ssl_certificate_key cert.key;
location / {
proxy_set_header X-Forwarded-Proto https;
# Sets the HTTP headers appropiately;
proxy_pass http://rails_application;