Comment on Lemmy <> Nginx proxy manager nightmares
tserts@lemmy.tserts.com 2 weeks ago
Federation is fixed, search from the fediverse for my users, communities and posts is fixed, npm is fixed with two custom locations /api and /pictrs and the advanced parameters I found from a guide:
location / { set $proxpass "http://10.0.0.227:1236/"; if ($http_accept ~ "^application/.*$") { set $proxpass "http://10.0.0.227:8536/"; } if ($request_method = POST) { set $proxpass "http://10.0.0.227:8536/"; } proxy_pass $proxpass; rewrite ^(.+)/+$ $1 permanent; # Send actual client IP upstream proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; }
The ONLY main issue is the image post mystery. I can’t make image posts, they are converted to link posts. I checked and I have no thumbs in the database for my images, the federated images have thumbs. Does anyone have a clue why this is so hard to work right?