Skip to content

Instantly share code, notes, and snippets.

View salmanasiddiqui's full-sized avatar

Salman Siddiqui salmanasiddiqui

  • Canada
  • 11:34 (UTC -04:00)
View GitHub Profile
@davidcelis
davidcelis / nginx.conf
Last active June 15, 2018 13:11
Nginx configuration to redirect HTTP traffic to HTTPS (Puma)
upstream puma {
server unix:///var/www/app/shared/tmp/sockets/puma.sock fail_timeout=0;
}
server {
listen 80 default deferred;
server_name example.com;
rewrite ^/(.+) https://example.com/$1 permanent;
}