mirror of
https://github.com/netbootxyz/webapp.git
synced 2026-04-25 07:05:59 +03:00
[PR #73] Full Support For Environment Proxy (http, https, no_proxy) #79
Labels
No labels
Hacktoberfest
bug
enhancement
no-issue-activity
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/webapp#79
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/netbootxyz/webapp/pull/73
Author: @Mionsz
Created: 8/10/2024
Status: 🔄 Open
Base:
master← Head:private/mlinkiew/fetch_master📝 Commits (4)
d8f568bReflecting Dockerfile-netbootxyz changes88f97d5HTTP and HTTPS proxy agents addedc908234Dockerfile code improvements and labeles added.ff5ed14Merge branch 'master' into private/mlinkiew/fetch_master📊 Changes
7 files changed (+146 additions, -101 deletions)
View changed files
📝
Dockerfile(+24 -9)📝
app.js(+47 -13)📝
package.json(+4 -1)📝
root/defaults/default(+1 -1)📝
root/etc/supervisor.conf(+3 -3)➕
root/init.sh(+65 -0)📝
root/start.sh(+2 -74)📄 Description
Full http_proxy https_proxy, no_proxy suupport:
Support for http_proxy, https_proxyh and no_proxy environment variables implemented. This include reading variables from process environment, comparing request_url with no_proxy cidr's and names, and of course setting and redirecting requests using proxy or corporate proxy services. This does not impact by any means the DHCP and TFTP services - only webapp.
Environments read for comparision:
http_proxy||HTTP_PROXYhttps_proxt||HTTPS_PROXYno_proxy||NO_PROXYImplemented and/or extended:
One method for each approach getProxyAgentFromUrl().
Almost no changes to the code are needed.
This fully resolves: https://github.com/netbootxyz/webapp/issues/66
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.