sample config with automatic http/https choosing