matrix-docker-ansible-deploy/docs/configuring-playbook-nginx.md

26 lines
977 B
Markdown
Raw Normal View History

2019-10-04 08:07:37 +00:00
# Configure Nginx (optional, advanced)
2019-04-17 11:42:09 +00:00
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.
2019-10-04 08:07:37 +00:00
## Using Nginx status
2019-04-17 11:42:09 +00:00
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
matrix_nginx_proxy_proxy_matrix_nginx_status_enabled: true
2019-04-17 11:42:09 +00:00
```
2019-04-23 07:44:02 +00:00
This will serve the status page under the following addresses:
- `http://matrix.DOMAIN/nginx_status` (using HTTP)
- `https://matrix.DOMAIN/nginx_status` (using HTTPS)
2019-08-07 09:35:48 +00:00
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:
2019-04-23 07:44:02 +00:00
```yaml
matrix_nginx_proxy_proxy_matrix_nginx_status_allowed_addresses:
2019-04-23 07:44:02 +00:00
- 8.8.8.8
- 1.1.1.1
```