Fix nginx port, add missing newline, ensure in right directory for db upgrade
Make git repo source configurable