-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Engdocs 2038 #19698
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
Engdocs 2038 #19698
Conversation
✅ Deploy Preview for docsdocker ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
- `mode`: Same meaning as with the existing `proxy` setting. Possible values are `system` and `manual`. | ||
- `http`, `https`, `exclude`: Same meaning as with the `proxy` setting. Only takes effect if `mode` is set to `manual`. | ||
- `pac` : URL for a PAC file. Only takes effect if `mode` is `manual`, and is considered higher priority than `http`, `https`, `exclude`. | ||
- `transparentPorts`: A comma-separated list of ports (e.g. `80`,`443`,`8080`) or a wildcard (`*`) indicating which ports should be proxied. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this should be a single string?
- `transparentPorts`: A comma-separated list of ports (e.g. `80`,`443`,`8080`) or a wildcard (`*`) indicating which ports should be proxied. | |
- `transparentPorts`: A comma-separated list of ports (for example, `"80,443,8080"`) or a wildcard (`*`) indicating which ports should be proxied. |
|
||
## Example PAC file | ||
|
||
For general information about PAC files, see the [Mozilla documentation](https://developer.mozilla.org/en-US/docs/Web/HTTP/Proxy_servers_and_tunneling/Proxy_Auto-Configuration_PAC_file). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For general information about PAC files, see the [Mozilla documentation](https://developer.mozilla.org/en-US/docs/Web/HTTP/Proxy_servers_and_tunneling/Proxy_Auto-Configuration_PAC_file). | |
For general information about PAC files, see [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/HTTP/Proxy_servers_and_tunneling/Proxy_Auto-Configuration_PAC_file). |
} | ||
``` | ||
|
||
The url parameter is either `http://host_or_ip:port` or `https://host_or_ip:port`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The url parameter is either `http://host_or_ip:port` or `https://host_or_ip:port`. | |
The `url` parameter is either `http://host_or_ip:port` or `https://host_or_ip:port`. |
- `DIRECT`: Allows this request to go direct, without a proxy | ||
- `PROXY reject.docker.internal:any_port`: Rejects this request | ||
|
||
In this particular example HTTP and HTTPS requests for `internal.corp` are sent via the HTTP proxy `10.0.0.1:3128`. Requests to connect to IPs on the subnet `192.168.0.0/24` connect directly. All other requests are blocked. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this particular example HTTP and HTTPS requests for `internal.corp` are sent via the HTTP proxy `10.0.0.1:3128`. Requests to connect to IPs on the subnet `192.168.0.0/24` connect directly. All other requests are blocked. | |
In this particular example, HTTP and HTTPS requests for `internal.corp` are sent via the HTTP proxy `10.0.0.1:3128`. Requests to connect to IPs on the subnet `192.168.0.0/24` connect directly. All other requests are blocked. |
|
||
In this particular example HTTP and HTTPS requests for `internal.corp` are sent via the HTTP proxy `10.0.0.1:3128`. Requests to connect to IPs on the subnet `192.168.0.0/24` connect directly. All other requests are blocked. | ||
|
||
To restrict traffic connecting to ports on the developers local machine, match the special hostname `host.docker.internal`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think a link here to where we describe host.docker.internal
would be helpful
|
||
## Configuration | ||
|
||
Assuming enforced sign-in and Settings Management are enabled, add the new proxy configuration to the `admin-settings.json` file. For example: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we could link to the docs for enforced sign-in and settings management here?
|
||
- `locked`: If true, it is not possible for developers to override these settings. If false the settings are interpreted as default values which the developer can change. | ||
- `mode`: Same meaning as with the existing `proxy` setting. Possible values are `system` and `manual`. | ||
- `http`, `https`, `exclude`: Same meaning as with the `proxy` setting. Only takes effect if `mode` is set to `manual`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These fields are not shown in the example above. I think it would be clearer if they were.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If added to the example above they would be
"http": "",
"https": "",
"exclude": "",
(although watch out for the lack of comma on the last entry)
Air-gapped containers (beta) feature. For DD4.29
Related issues or tickets
Reviews