Generate Nginx configuration from Ruby