Skip to content

Commit

Permalink
Update reverse proxy docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dometto committed Apr 29, 2024
1 parent 681ec8e commit 391d6d2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
7 changes: 6 additions & 1 deletion docs/playbooks/reverse_proxy.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,12 @@ You can add keys to these dicts corresponding to nginx configuration detectives.
- {name: myfile1, username: test2, password: letmein} # second user for myfile1
- {name: myfile2, username: test3, password: letmein} # a second file myfile2
```
**This parameter should be [set as a CO secret](https://servicedesk.surf.nl/wiki/display/WIKI/Secrets+and+workspace+info%3A+special+parameter+source+types). By default, the secret that will be looked up is called `reverse_proxy_auth_info`, but you may change this in your Catalog Item.**
**This parameter should be [set as a CO secret](https://servicedesk.surf.nl/wiki/display/WIKI/Secrets+and+workspace+info%3A+special+parameter+source+types). By default, the secret that will be looked up is called `reverse_proxy_auth_info`, but you may change this in your Catalog Item.*

If one of the entries in `reverse_proxy_auth_info` blocks do not contain a password or username, default usernames and passwords will be added to the htpassword file. **By default these are empty.** You can override them by setting the following parameters:

- `basic_auth_default_username`
- `basic_auth_default_password`

## See also

Expand Down
9 changes: 8 additions & 1 deletion docs/roles/nginx-reverse_proxy.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,17 @@ Debian/Ubuntu operating system.
username: tester2
password: letmein
- name: myfile2
username: tester2
username: tester3
# not setting the 'password' field will use the default EMPTY password
- name: myfile3
# not setting the 'username' field will use the default EMPTY username
password: letmein
```
- `nginx_reverse_proxy_default_username`: String. Standard username to add to an httaccess file if none is explicitly provided (see `nginx_reverse_proxy_auth_info`). Default: `''`.
- `nginx_reverse_proxy_default_passwrod`: String. Standard password to add to an httaccess file if none is explicitly provided (see `nginx_reverse_proxy_auth_info`). Default: `''`.


## See also

## History
Expand Down

0 comments on commit 391d6d2

Please sign in to comment.