Skip to content

Instantly share code, notes, and snippets.

View athurg's full-sized avatar
🐵

Athurg Gooth athurg

🐵
View GitHub Profile
@jpillora
jpillora / go-get-gitlab-ssh-nginx
Created May 10, 2015 08:38
Go get Gitlab ssh paths with nginx
location / {
## check for goget AND /namespace/project
if ($args ~* "^go-get=1") {
set $condition goget;
}
if ($uri ~ ^/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)$) {
set $condition "${condition}path";
}
if ($condition = gogetpath) {
return 200 "<!DOCTYPE html><html><head><meta content='git.axon$uri git ssh://[email protected]:2200$uri.git' name='go-import'></head></html>";