updating nginx configurations and handling tasks