Browse Source

nginx sample config, quickly tested

tags/v0.9.9
href 6 years ago
parent
commit
d1806ec07f
No known key found for this signature in database GPG Key ID: EE8296C1A152C325
1 changed files with 11 additions and 1 deletions
  1. +11
    -1
      installation/pleroma.nginx

+ 11
- 1
installation/pleroma.nginx View 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;
@@ -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;

}
}

Loading…
Cancel
Save