502 bad gateway nginx gunicorn flask code example
Example: 502 bad gateway nginx gunicorn flask when uploading file
#Check if the gunicorn has write access to the folder you want to add
#the file. If it doesn't have, then use
chmod -R 777 the_folder_you_want_to_write_to