Skip to content

Instantly share code, notes, and snippets.

Justin Ellingwood imchairmanm

Block or report user

Report or block imchairmanm

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@imchairmanm
imchairmanm / gist:eaa16e6c7a459e9f76aa5d0aaf507e62
Last active Apr 27, 2016
Self-signed SSL Nginx server block
View gist:eaa16e6c7a459e9f76aa5d0aaf507e62
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name example.com;
return 302 https://$server_name$request_uri;
}
server {
listen 443 ssl http2 default_server;
@imchairmanm
imchairmanm / gist:fd033191941cb27251b6a3a7ac1f051c
Last active Aug 30, 2016
Let's Encrypt Nginx server block
View gist:fd033191941cb27251b6a3a7ac1f051c
server {
listen 80;
server_name example.com www.example.com;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
server_name example.com www.example.com;
You can’t perform that action at this time.