Refactor Travis-CI config for nginx.