Refactoring LEMP script and nginx config