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
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,8 @@ The following query parameters can be used to send a *reconfigure* request to *D
22
22
|delReqHeader |Additional headers that will be deleted in the request before forwarding it to the service. Multiple headers should be separated with comma (`,`). Please consult [Delete a header in the request](https://www.haproxy.com/doc/aloha/7.0/haproxy/http_rewriting.html#delete-a-header-in-the-request) for more info.<br>Example: `X-Forwarded-For,Cookie`||
23
23
|delResHeader |Additional headers that will be deleted in the response before forwarding it to the client. Multiple headers should be separated with comma (`,`). Please consult [Delete a header in the response](https://www.haproxy.com/doc/aloha/7.0/haproxy/http_rewriting.html#delete-a-header-in-the-response) for more info.<br>Example: `X-Varnish,X-Cache`||
24
24
|httpsPort |The internal HTTPS port of a service that should be reconfigured. The port is used only in the `swarm` mode. If not specified, the `port` parameter will be used instead.<br>Example: `443`||
25
-
|isDefaultBackend | If true, the service will be set to the default_backend rule, meaning it will catch all requests not matching any other rules.<br>Example: `true`||
25
+
|ignoreAuthorization|If set to true, the service destination will not require authorization. The parameter must be prefixed with the index of the service destion that should be excluded from authorization.<br>Example: true|false|
26
+
|isDefaultBackend |If set to true, the service will be set to the default_backend rule, meaning it will catch all requests not matching any other rules.<br>Example: `true`|false|
26
27
|port |The internal port of a service that should be reconfigured. The port is used only in the `swarm` mode. The parameter can be prefixed with an index thus allowing definition of multiple destinations for a single service (e.g. `port.1`, `port.2`, and so on). This field is **mandatory** when running in `swarm` or `service` mode.<br>Example: `8080`||
27
28
|reqMode |The request mode. The proxy should be able to work with any mode supported by HAProxy. However, actively supported and tested modes are `http`, `tcp`, and `sni`. The `sni` mode implies TCP with an SNI-based routing. The parameter can be prefixed with an index thus allowing definition of multiple modes for a single service (e.g. `http`, `tcp`, and so on).<br>Example: `tcp`|http|
28
29
|reqPathReplace |A regular expression to apply the modification.<br>Example: `/demo/`||
@@ -37,7 +38,7 @@ The following query parameters can be used to send a *reconfigure* request to *D
37
38
|timeoutTunnel |The tunnel timeout in seconds.<br>Example: `3600`|3600 |
38
39
|xForwardedProto|Whether to add "X-Forwarded-Proto https" header.<br>Example: `true`|false |
39
40
40
-
Multiple destinations for a single service can be specified by adding index as a suffix to `servicePath`, `srcPort`, `port`, `userAgent`, and `ReqMode` parameters. In that case, `srcPort` is required. Defining multiple destinations is useful in cases when a service exposes multiple ports with different paths and functions.
41
+
Multiple destinations for a single service can be specified by adding index as a suffix to `servicePath`, `srcPort`, `port`, `userAgent`, `ignoreAuthorization` or `ReqMode` parameters. In that case, `srcPort` is required.
41
42
42
43
### HTTP Mode HTTP Query Parameters
43
44
@@ -61,7 +62,7 @@ The following query parameters can be used only when `reqMode` is set to `http`
61
62
|usersPassEncrypted|Indicates whether passwords provided by `users` or `usersSecret` contain encrypted data. Passwords can be encrypted with the command `mkpasswd -m sha-512 password1`.<br>Example: `true`|false|
62
63
|verifyClientSsl|Whether to verify client SSL and, if it is not valid, deny request and return 403 Forbidden status code. SSL is validated against the `ca-file` specified through the environment variable `CA_FILE`.<br>Example: true|false|
63
64
64
-
Multiple destinations for a single service can be specified by adding index as a suffix to `servicePath`, `srcPort`, `port`, `userAgent`, and `ReqMode` parameters. In that case, `srcPort` is required. Defining multiple destinations is useful in cases when a service exposes multiple ports with different paths and functions.
65
+
Multiple destinations for a single service can be specified by adding index as a suffix to `servicePath`, `srcPort`, `port`, `userAgent`, `ignoreAuthorization`, or `ReqMode` parameters. In that case, `srcPort` is required.
Copy file name to clipboardExpand all lines: proxy/types.go
+9-8Lines changed: 9 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,8 @@ var usersBasePath string = "/run/secrets/dfp_users_%s"
10
10
11
11
// ServiceDest holds data used to generate proxy configuration. It is extracted as a separate struct since a single service can have multiple combinations.
12
12
typeServiceDeststruct {
13
+
// Whether to ignore authorization for this service destination.
14
+
IgnoreAuthorizationbool
13
15
// The internal port of a service that should be reconfigured.
14
16
// The port is used only in the *swarm* mode.
15
17
Portstring
@@ -348,16 +350,15 @@ func getServiceDest(sr *Service, provider ServiceParameterProvider, index int) S
0 commit comments