1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pleroma_ynh.git synced 2024-09-03 20:15:59 +02:00

Fix nginx[14214]: nginx: [emerg] directive "proxy_cache" is not terminated by ";" in /etc/nginx/conf.d/sub.domain.tld.d/pleroma.conf:47

This commit is contained in:
yalh76 2021-02-28 20:38:06 +01:00
parent f8debd40ee
commit 6da0b969c7
2 changed files with 2 additions and 3 deletions

View file

@ -1,2 +1 @@
proxy_cache_path /tmp/pleroma-media-cache levels=1:2 keys_zone=pleroma_media_cache:10m max_size=__SIZE__
inactive=720m use_temp_path=off;
proxy_cache_path /tmp/__APP__-media-cache levels=1:2 keys_zone=__APP___media_cache:10m max_size=__SIZE__ inactive=720m use_temp_path=off;

View file

@ -1,7 +1,7 @@
rewrite ^/proxy/(.*)/(.*)/.* /proxy/$1/$2 last;
location ~ ^/(media|proxy) {
proxy_cache {APP}_media_cache;
proxy_cache __APP___media_cache;
proxy_cache_key $host$uri$is_args$args;
proxy_http_version 1.1;
proxy_cache_valid 200 206 301 304 1h;