Skip to content

Instantly share code, notes, and snippets.

View arielsrv's full-sized avatar
🏠
Working from home

Ariel Piñeiro arielsrv

🏠
Working from home
View GitHub Profile
@jessfraz
jessfraz / j3ss.co.conf
Created October 1, 2016 21:37
nginx go-get vanity urls
server {
....
location ~ ^/x/(.*) {
if ($args = "go-get=1") {
add_header Content-Type text/html;
return 200 '<meta name="go-import" content="$host/x/$1 git https://github.com/jessfraz/$1.git">';
}
return 302 https://github.com/jessfraz/$1;
}