Specify socket connection for mysql require_secure_transport

Is it possible to configure an explicit socket connection to a local MySQL server rather than

I want to harden my MySQL server by setting require_secure_transport = ON.

Does anyone know a directive for the [database] block in seafile.conf and a similar property in the DATABASES object in seahub_settings.py that could do this?

I’m using Seafile Pro 7.1.9.