You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
977 B
26 lines
977 B
5 years ago
|
# Configure Nginx (optional, advanced)
|
||
6 years ago
|
|
||
|
By default, this playbook installs its own nginx webserver (in a Docker container) which listens on ports 80 and 443.
|
||
|
If that's alright, you can skip this.
|
||
|
|
||
|
|
||
5 years ago
|
## Using Nginx status
|
||
6 years ago
|
|
||
|
This will serve a statuspage to the hosting machine only. Useful for monitoring software like [longview](https://www.linode.com/docs/platform/longview/longview-app-for-nginx/)
|
||
|
|
||
|
```yaml
|
||
5 years ago
|
matrix_nginx_proxy_proxy_matrix_nginx_status_enabled: true
|
||
6 years ago
|
```
|
||
6 years ago
|
|
||
5 years ago
|
This will serve the status page under the following addresses:
|
||
|
- `http://matrix.DOMAIN/nginx_status` (using HTTP)
|
||
|
- `https://matrix.DOMAIN/nginx_status` (using HTTPS)
|
||
5 years ago
|
|
||
5 years ago
|
By default, if ```matrix_nginx_proxy_nginx_status_enabled``` is enabled, access to the status page would be allowed from the local IP address of the server. If you wish to allow access from other IP addresses, you can provide them as a list:
|
||
6 years ago
|
|
||
|
```yaml
|
||
5 years ago
|
matrix_nginx_proxy_proxy_matrix_nginx_status_allowed_addresses:
|
||
6 years ago
|
- 8.8.8.8
|
||
|
- 1.1.1.1
|
||
|
```
|