add env configuration for pubsub and redis provider