'Return a dictionary representing Galaxy\'s current configuration.'

def _get_site_configuration(self, trans):

    try:
        serializer = self.config_serializer
        if self.user_manager.is_admin(trans.user):
            serializer = self.admin_config_serializer
        return serializer.serialize_to_view(self.app.config, view='all')
    except Exception as exc:
        log.exception(exc)
        return {}
