You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/usage.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,7 @@ The following query parameters can be used to send a *reconfigure* request to *D
36
36
|setReqHeader |Additional headers that will be set to the request before forwarding it to the service. If a specified header exists, it will be replaced with the new one. Multiple headers should be separated with comma (`,`). Change the environment variable `SEPARATOR` if comma is to be used for other purposes. Please consult [Set a header to the request](https://www.haproxy.com/doc/aloha/7.0/haproxy/http_rewriting.html#set-a-header-in-the-request) for more info.<br>**Example:**`X-Forwarded-Port %[dst_port],X-Forwarded-Ssl on if { ssl_fc }`|
37
37
|setResHeader |Additional headers that will be set to the response before forwarding it to the client. If a specified header exists, it will be replaced with the new one. Multiple headers should be separated with comma (`,`). Change the environment variable `SEPARATOR` if comma is to be used for other purposes. Please consult [Set a header to the response](https://www.haproxy.com/doc/aloha/7.0/haproxy/http_rewriting.html#set-a-header-in-the-response) for more info.<br>**Example:**`X-Via %[env(HOSTNAME)],Server haproxy`|
38
38
|srcPort |The source (entry) port of a service. The parameter can be prefixed with an index thus allowing definition of multiple destinations for a single service (e.g. `srcPort.1`, `srcPort.2`, and so on). The parameter is mandatory when specifying multiple destinations of a single service. If this parameter is used with `http` mode, the port needs to be specified with the environment variable `BIND_PORTS` (see [Environment Variables](http://proxy.dockerflow.com/config/#environment-variables) for more info) and the port needs to be published on service level.<br>**Example:**`80`|
39
+
|srcHttpsPort |The source (entry) port of a https service. The parameter can be prefixed with an index thus allowing definition of multiple destinations for a single service (e.g. `srcHttpsPort.1`, `srcHttpsPort.2`, and so on). The parameter is mandatory when specifying multiple destinations of a single service. The ports needs to be specified with the environment variable `BIND_PORTS` (see [Environment Variables](http://proxy.dockerflow.com/config/#environment-variables) for more info) and the port needs to be published on service level.<br>**Example:**`4443`|
39
40
|timeoutServer |The server timeout in seconds.<br>**Default:**`20`<br>**Example:**`60`|
40
41
|timeoutTunnel |The tunnel timeout in seconds.<br>**Default:**`3600`<br>**Example:**`3600`|
41
42
|userDef |User defined value. This value is not used with current template. It is designed as a way to provide additional data that can be used with **custom templates**. The parameter must be prefixed with an index thus allowing definition of multiple destinations for a single service (e.g. `userDef.1`, `userDef.2`, and so on).|
@@ -152,6 +153,7 @@ The map between the HTTP query parameters and environment variables is as follow
Copy file name to clipboardExpand all lines: proxy/types.go
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -65,10 +65,17 @@ type ServiceDest struct {
65
65
// The source (entry) port of a service.
66
66
// Useful only when specifying multiple destinations of a single service.
67
67
SrcPortint
68
+
// The source (entry) port of a https service.
69
+
// Useful only when specifying multiple destinations of a single service.
70
+
SrcHttpsPortint
68
71
// Internal use only. Do not modify.
69
72
SrcPortAclstring
70
73
// Internal use only. Do not modify.
71
74
SrcPortAclNamestring
75
+
// Internal use only. Do not modify.
76
+
SrcHttpsPortAclstring
77
+
// Internal use only. Do not modify.
78
+
SrcHttpsPortAclNamestring
72
79
// If set to true, server certificates are not verified. This flag should be set for SSL enabled backend services.
73
80
SslVerifyNonebool
74
81
// The server timeout in seconds
@@ -91,6 +98,8 @@ type ServiceDest struct {
91
98
ReqPathSearchReplaceFormatted []string
92
99
// Internal use only
93
100
IncludeSrcPortACLbool
101
+
// Internal use only
102
+
IncludeSrcHttpsPortACLbool
94
103
}
95
104
96
105
// UserAgent holds data used to generate proxy configuration. It is extracted as a separate struct since each user agent needs an ACL identifier. If specified, only requests with the same agent will be forwarded to the backend.
@@ -407,6 +416,7 @@ func getServiceDest(sr *Service, provider ServiceParameterProvider, index int) S
0 commit comments