From 929d731b806e42a2693b6f821060420a72187a4b Mon Sep 17 00:00:00 2001 From: Kromonos Date: Mon, 19 Dec 2022 16:15:51 +0100 Subject: [PATCH] Add README.md --- README.md | 5 +++++ webserver/README.md | 17 +++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 webserver/README.md diff --git a/README.md b/README.md index 4ee48fa..6fa5450 100644 --- a/README.md +++ b/README.md @@ -10,3 +10,8 @@ Kubernetes ---------- See more in the [kubernetes/ directory](kubernetes/) + +Webserver +--------- + +The [webserver / directory](webserver/) provides examples for e.g. nginx configuration \ No newline at end of file diff --git a/webserver/README.md b/webserver/README.md new file mode 100644 index 0000000..135abf5 --- /dev/null +++ b/webserver/README.md @@ -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. \ No newline at end of file