Skip to content

Commit ca2b1b0

Browse files
authored
Change mappings value to a list in the default template (#317)
1 parent 0e7c274 commit ca2b1b0

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 0.6.1 (Unreleased)
4+
5+
BUG FIXES:
6+
7+
* The default template now has a proper example value and comment for the `map.mappings` directive.
8+
39
## 0.6.0 (January 29, 2023)
410

511
ENHANCEMENTS:

defaults/main/template.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -647,14 +647,14 @@ nginx_config_http_template:
647647
map: # Configure maps -- Available only in the 'http' context
648648
hash_bucket_size: 64
649649
hash_max_size: 2048
650-
mappings: # Dictionary or list of dictionaries
651-
string: $remote_addr # Required
652-
variable: $upstream # Required
653-
hostnames: false # Boolean
654-
volatile: false # Boolean
655-
content: # Dictionary or list of dictionaries
656-
- value: default
657-
new_value: 0
650+
mappings: # List of dictionaries
651+
- string: $remote_addr # Required
652+
variable: $upstream # Required
653+
hostnames: false # Boolean
654+
volatile: false # Boolean
655+
content: # Dictionary or list of dictionaries
656+
- value: default
657+
new_value: 0
658658
mirror: # Configure mirrors
659659
request_body: true # Boolean
660660
uri: false # String or a list of strings -- Can alternatively be set to 'false'

0 commit comments

Comments
 (0)