aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhref <href@random.sh>2017-12-11 02:40:19 +0100
committerhref <href@random.sh>2017-12-11 02:40:19 +0100
commitd1806ec07f44b617769bc862048df30b8a3336da (patch)
tree3f0d846a8a3df50361c7cbf3d08843b55307bc2e
parent077faaed8c81113ab7b365facecf7180a5fb0417 (diff)
downloadpleroma-d1806ec07f44b617769bc862048df30b8a3336da.tar.gz
nginx sample config, quickly tested
-rw-r--r--installation/pleroma.nginx12
1 files changed, 11 insertions, 1 deletions
diff --git a/installation/pleroma.nginx b/installation/pleroma.nginx
index 1a6e1d56f..d882908e4 100644
--- a/installation/pleroma.nginx
+++ b/installation/pleroma.nginx
@@ -1,3 +1,6 @@
+proxy_cache_path /tmp/pleroma-media-cache levels=1:2 keys_zone=pleroma_media_cache:10m max_size=10g
+ inactive=720m use_temp_path=off;
+
server {
listen 80;
server_name example.tld;
@@ -21,6 +24,13 @@ server {
location / {
proxy_pass http://localhost:4000;
}
+
+ location /proxy {
+ proxy_cache pleroma_media_cache;
+ proxy_cache_lock on;
+ proxy_pass http://localhost:4000;
+ }
+
include snippets/well-known.conf;
-} \ No newline at end of file
+}