Skip to content

Commit

Permalink
SC-17065: CIDR support for the maintenance mode (spryker#470)
Browse files Browse the repository at this point in the history
* SC-17065: CIDR support for the maintenance mode

* Extend the docs with IP CIDR
  • Loading branch information
alexanderM91 authored Nov 8, 2023
1 parent 6a94e22 commit 448cc23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/07-deploy-file/02-deploy.file.reference.v1.md
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ groups:

#### Define allowlisted IP addresses

* `docker: maintenance: whitelist: ips:` - defines the allowlisted IP addresses from which the applications in the maintenance mode can be accessed.
* `docker: maintenance: whitelist: ips:` - defines the allowlisted IP addresses or a CIDR IP from which the applications in the maintenance mode can be accessed.

```yaml
version: 1.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ server_tokens off;

large_client_header_buffers 4 32k;

map $remote_addr $is_whitelisted_ip {
geo $is_whitelisted_ip {
default "0";
{% if docker['maintenance']['whitelist']['ips'] is defined %}
{% for ip in docker['maintenance']['whitelist']['ips'] | default([]) %}
Expand Down

0 comments on commit 448cc23

Please sign in to comment.