[solved]Bad Gateaway at file upload

Hey,
whenever i try to upload a file i get Bad Gateaway
the console then gives me this error: /seafhttp/upload-aj/c8c2f0a5-f3d9-4c0a-8111-138bdff4f44f Failed to load resource: the server responded with a status of 502 (Bad Gateway)

Thx in advance

Here are all the config files:
sites-available/seafile.conf (nginx)
https://pastebin.com/6NcyfSnN

ccnet conf
https://pastebin.com/PmfDhTXX

seafevents conf
https://pastebin.com/dTLPfYzi

seafile.conf
https://pastebin.com/n5dsmhkm

seahub_settings.py
https://pastebin.com/CqNhieSY