config.json:
{
"HOST": "127.0.0.1",
"PORT": "3333",
"QUALITY": "80",
"IMG_PATH": "{FLARUM_BASE_DIR}/public",
"EXHAUST_PATH": "{FLARUM_BASE_DIR}/public/cache",
"ALLOWED_TYPES": ["jpg","png","jpeg"]
}
nginx:
location ^~ /assets/ {
proxy_pass http://127.0.0.1:3333;
proxy_set_header X-Real-IP $remote_addr;
proxy_hide_header X-Powered-By;
proxy_set_header HOST $http_host;
add_header Cache-Control 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
}
have a try π