Skip to content

Instantly share code, notes, and snippets.

View Shikkic's full-sized avatar
🤪

Dan Cadden Shikkic

🤪
View GitHub Profile
@Shikkic
Shikkic / server-git.conf
Created September 8, 2016 00:13 — forked from massar/server-git.conf
Example nginx + git HTTP Smart mode (git-http-backend) + HTTP Authentication + HTTPS redirect
# Example nginx + git HTTP Smart mode (git-http-backend) + HTTP Authentication + HTTPS redirect
# jeroen@massar.ch - http://jeroen.massar.ch
server {
listen 192.0.1.1:80;
listen [2001:db8::1]:80;
# Redirect all non-HTTPS traffic to the HTTPS variant
return 301 https://$host$request_uri;
}