28 lines
899 B
Markdown
Raw Normal View History

2023-09-02 13:13:28 +02:00
# role nginx
2025-02-06 15:47:18 +01:00
This role sets up an nginx server. It was developed by [Kevin Veen-Birkenbach](https://www.veen.world).
## Debug
2021-10-29 15:24:42 +02:00
2025-02-06 15:47:18 +01:00
### General Debugging
2021-10-29 15:24:42 +02:00
```bash
2022-12-06 20:50:32 +01:00
journalctl -f -u nginx
2021-10-29 15:24:42 +02:00
```
2025-02-06 15:47:18 +01:00
### Detailled Debugging
Set ``enable_debugenable_debug: true``.
#### Follow logs of one host
```bash
journalctl -u nginx -f | grep "<<hostname>>"
```
### Activate detailled Debugging:
## performance
- https://www.monitis.com/blog/6-best-practices-for-optimizing-your-nginx-performance/
- https://www.nginx.com/blog/tuning-nginx/
2021-01-01 23:05:22 +01:00
- https://davidwalsh.name/enable-gzip
- https://www.nginx.com/blog/performance-tuning-tips-tricks/
2021-01-02 10:02:17 +01:00
- https://medium.com/pixelpoint/best-practices-for-cache-control-settings-for-your-website-ff262b38c5a2
2021-01-02 10:39:20 +01:00
- https://www.nginx.com/blog/nginx-caching-guide/
2023-08-22 23:56:56 +02:00
- https://meta.discourse.org/t/using-nginx-as-proxy-server-is-very-slow-but-it-is-very-fast-if-using-nginx-in-docker-why/168972