### Is there an existing issue for this?

- [X] I have searched the existing issues and read the documentation

### Question

I'm running Localstack inside minikube on macOS. Due to the networking configuration in macOS, I need to use an HTTP proxy whenever I'm connected to a VPN.

This means that Localstack fails to start inside minikube when the host is connected to a VPN. The issue came up when Localstack tried to download https://github.com/localstack/localstack-artifacts/raw/master/local-certs/server.key.

Is there a way to tell Localstack to use an HTTP proxy when downloading resources?

### Anything else?

_No response_
endpoint = self.endpoint_events
        if not events:
            return
        docs = list()
        for event in events:
            try:
                docs.append(event.asdict())
            except Exception:
                if self.debug:
                    LOG.exception("error while recording event %s", event)
        headers = self._create_headers()
        if self.debug:
            LOG.debug("posting to %s events %s", endpoint, docs)
        
        response = requests.post(endpoint, json={"events": docs}, headers=headers)
        if self.debug:
            LOG.debug("response from %s was: %s %s", endpoint, response.status_code, response.text)
        
        return response
    def _create_headers(self) -> Dict[str, str]:
        return {
            "User-Agent": "localstack/" + constants.VERSION,
            "Localstack-Session-ID": self.localstack_session_id,
        }