Every file uploaded has the wrong permissions so my webserver (Nginx) can't read them. When I manually adjust them by running sudo chmod -R 755 /var/www/*
it works again but I'd have to to it everytime I upload a new file. How can I automatically set all permissions of files uploaded via SFTP to 755?
I also tried adding this line to sshd_config:
Subsystem sftp internal-sftp -u 0022