pull/1/head
Kromonos 2022-12-19 16:15:51 +01:00
rodzic e2d423ea6c
commit 929d731b80
2 zmienionych plików z 22 dodań i 0 usunięć

Wyświetl plik

@ -10,3 +10,8 @@ Kubernetes
----------
See more in the [kubernetes/ directory](kubernetes/)
Webserver
---------
The [webserver / directory](webserver/) provides examples for e.g. nginx configuration

Wyświetl plik

@ -0,0 +1,17 @@
Webserver Examples
==================
nginx
-----
**The nginx example needs at least nginx version 1.20.**
When you want to use the nginx example, including caching, you need to create the specific directories first, so that nginx will not run into errors:
```bash
mkdir -p /usr/share/nginx/takahe/{static,cache,logs}
```
If you don't want caching, remove the lines starting with `proxy_cache_`, `add_header X-Cache $upstream_cache_status;` and `proxy_ignore_headers X-Accel-Expires Expires Cache-Control;`
Remember to use the command `nginx -t` to check, if the configuration works.