remove unused require
added more settings for different server
fix in forceHttps middelware