This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>"; |