server { listen 80; listen [::]:80; location / { return 301 /repo/; } location /repo/ { root /repo; index index.html; } }