X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=installation%2Fpleroma.nginx;h=f714792daa62a00db3236906f5df1b6ebbe969ac;hb=ede4883ac93b1827c8fab125125bff94c1a855db;hp=1a6e1d56f4f41f9db7ac6eca775da87890069eba;hpb=678f572144bfd861793c0b72061b04cdb9b7c991;p=akkoma diff --git a/installation/pleroma.nginx b/installation/pleroma.nginx index 1a6e1d56f..f714792da 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; @@ -19,8 +22,17 @@ server { server_name example.tld; location / { + add_header 'Access-Control-Allow-Origin' '*'; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + 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; + } + +}