Change
location ~ /\.(?!well-known) {
deny all;
}Change
location ~ /\.(?!well-known) {
deny all;
}Also, before this, I noticed that some images weren't showing, which I think was also caused by this, so hopefully that issue will disappear too.
Setting the client_max_body_size to 100M and sending a file or image seems to have fixed the issue. Also, before this, I noticed that some images weren't showing, which I think was also caused by this, so hopefully that issue will disappear too.