Add README.md
rodzic
e2d423ea6c
commit
929d731b80
|
@ -10,3 +10,8 @@ Kubernetes
|
|||
----------
|
||||
|
||||
See more in the [kubernetes/ directory](kubernetes/)
|
||||
|
||||
Webserver
|
||||
---------
|
||||
|
||||
The [webserver / directory](webserver/) provides examples for e.g. nginx configuration
|
|
@ -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.
|
Ładowanie…
Reference in New Issue