Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support system proxy #15234

Closed
wants to merge 6 commits into from
Closed

Support system proxy #15234

wants to merge 6 commits into from

Conversation

lunny
Copy link
Member

@lunny lunny commented Apr 1, 2021

This PR added a system proxy supports which should be applied to every request to external http/https URL.
Follow requests will follow the proxy setting if no standalone setting.

  • Migrate or Mirror git data from external http/https URLs
  • Migrations from http/https URLs
  • Send webhooks to external URLs

depend on #15241

And since webhook has supported standalone proxy, webhook's proxy settings will override the system proxy settings.

This PR also added an option to ignore tls verify on migrations.

@lunny lunny added the type/feature Completely new functionality. Can only be merged if feature freeze is not active. label Apr 1, 2021
@lunny lunny added this to the 1.15.0 milestone Apr 1, 2021
[proxy]
; Enable the proxy, all requests to external via HTTP will be affected
PROXY_ENABLED = false
; Proxy server URL, support http:https://, https//, socks:https://, blank will follow environment http_proxy/https_proxy
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
; Proxy server URL, support http:https://, https//, socks:https://, blank will follow environment http_proxy/https_proxy
; Proxy server URL, support http:https://, https//, socks:https://, blank will follow environment http_proxy/https_proxy/no_proxy

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Apr 1, 2021
@silverwind
Copy link
Member

I think "system proxy" is a misleading term because at least on Linux, the OS does not have such a facility, it's all in environment variables.

@lunny
Copy link
Member Author

lunny commented Apr 1, 2021

The name system proxy or global proxy is relative to webhook proxy or other parts of Gitea in future.

For git, it also has system proxy / global proxy / user proxy concepts.

@lunny lunny added the pr/wip This PR is not ready for review label Apr 1, 2021
@zeripath zeripath modified the milestones: 1.15.0, 1.16.0 Jun 23, 2021
@lunny lunny closed this Aug 16, 2021
@lunny lunny deleted the lunny/system_proxy branch August 16, 2021 13:40
@go-gitea go-gitea locked and limited conversation to collaborators Oct 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. pr/wip This PR is not ready for review type/feature Completely new functionality. Can only be merged if feature freeze is not active.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants