Update security.md (#1506)

It is incorrect that both additions are required to go into the `location\` block - one goes into the `server` block, the other into the `location` block. This is echoed by the final full configuration at the end of the page.
pull/1507/head
digitlength 2021-03-07 15:40:57 +00:00 committed by GitHub
parent 76a80fd47d
commit b4761979a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,7 @@ Open the configuration file and **add** the following lines underneath the proxy
##### Add authorization and cookie directives in NGINX Configuration
This is an important new requirment in openHAB 3.0 and later versions.
This is not required prior to openHAB 3.0. In the `location /` block, you must add the following two directives underneath the `add_header` and `proxy_set_header` items respectively:
This is not required prior to openHAB 3.0. You must add the following two directives underneath the `add_header` (in the `server` block) and `proxy_set_header` (in the `location /` block) items respectively:
```nginx
add_header Set-Cookie X-OPENHAB-AUTH-HEADER=1;