From 4997771183f9608be363ff43dbd646a8964636a0 Mon Sep 17 00:00:00 2001 From: Flancian <0@flancia.org> Date: Sat, 14 Aug 2021 20:32:18 +0200 Subject: [PATCH] Default commit message, part of an automated flow. --- nginx caching.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 nginx caching.md diff --git a/nginx caching.md b/nginx caching.md new file mode 100644 index 000000000..5b3b3e940 --- /dev/null +++ b/nginx caching.md @@ -0,0 +1,22 @@ +# nginx caching + +- [[2021-08-14]] + - added this to nginx.conf in http scope: + +``` + uwsgi_cache_valid any 30s; + uwsgi_cache_path /tmp/agora-cache keys_zone=agora-cache:1000m; +``` + +- [[2021-08-14]] + - and this is what the [[agora]]'s `location` looks like in the virtual host: + +``` + location / { + uwsgi_cache agora-cache; + uwsgi_cache_key $scheme$host$request_uri; + include uwsgi_params; + # /home/agora/agora-server/run-prod.sh to run. + uwsgi_pass unix:/tmp/agora-uwsgi.sock; + } +``` \ No newline at end of file