Take settings for compression from environment settings.