Add remote follow path to webfinger.
[akkoma] / installation / pleroma.nginx
index 6cf9f3fa0665d3fa4fd47d6d7410775cd32d51f0..92ed8f32ea8cd15c148db8b9548cc016dabf01a3 100644 (file)
@@ -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;
@@ -24,6 +27,11 @@ server {
         proxy_set_header Connection "upgrade";
         proxy_pass http://localhost:4000;
     }
-    include snippets/well-known.conf;
 
-}
\ No newline at end of file
+    location /proxy {
+        proxy_cache pleroma_media_cache;
+        proxy_cache_lock on;
+        proxy_pass http://localhost:4000;
+    }
+
+}