add support to add headers to all vhosts

This commit is contained in:
nd 2020-03-04 23:36:53 +01:00
parent be5b2f4bae
commit b926014bdf
No known key found for this signature in database
GPG key ID: 21B5CD4DEE3670E9
3 changed files with 10 additions and 2 deletions

View file

@ -33,6 +33,9 @@ php: False
# dict of ips to accept "X-Forwarded-~" from
real_ip_from: {"127.0.0.1": {}, "::1": {}}
# array of headers to add on *all* vhosts
add_headers: []
```
**upstreamconfig**:
@ -72,6 +75,9 @@ custom: []
# array of locations, see below
locations: [*locationconfig*, .. ]
# array of headers to add on this vhost
add_headers: []
```
**locationconfig**: