added ssl in production mode