Skip to content

feat(server): multiple proxy support#174

Merged
skyhancloud merged 1 commit intomainfrom
patch
Feb 28, 2025
Merged

feat(server): multiple proxy support#174
skyhancloud merged 1 commit intomainfrom
patch

Conversation

@skyhancloud
Copy link
Member

This pull request introduces a new feature to support multiple proxy servers for webhook requests. The changes include updates to the configuration files and modifications to the proxy agent utility to handle the new format.

Configuration updates:

  • README.md: Added WEBHOOKS_PROXY_SERVERS to the environment variables list and provided a detailed explanation of its format and usage. [1] [2] [3]
  • server/.example.env: Added WEBHOOKS_PROXY_SERVERS to the example environment configuration file.

Code updates:

  • server/src/utils/getProxyAgent.js: Updated the getProxyAgent function to handle multiple proxy servers by parsing the WEBHOOKS_PROXY_SERVERS environment variable and selecting a random server for each request.

@skyhancloud skyhancloud added Backend: Feature Requests or discussions related to new features in the Express backend. Backend: Security Issues concerning security vulnerabilities or improvements in the backend. labels Feb 28, 2025
@skyhancloud skyhancloud self-assigned this Feb 28, 2025
@skyhancloud skyhancloud marked this pull request as ready for review February 28, 2025 23:32
@skyhancloud skyhancloud merged commit 33d3eef into main Feb 28, 2025
3 checks passed
@skyhancloud skyhancloud deleted the patch branch February 28, 2025 23:32
@github-actions github-actions bot mentioned this pull request Feb 28, 2025
@github-actions github-actions bot mentioned this pull request Mar 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Backend: Feature Requests or discussions related to new features in the Express backend. Backend: Security Issues concerning security vulnerabilities or improvements in the backend.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant