making it work with nginx in production