Photoprism - tune MariaDB

Hello all,
I tried my best to google this but nothing helped me so far.

I’m running TrueNAS Scale Dragonfish-24.04.2.2 and Photoprism App Version:
240915 Chart Version: 2.0.10.

So far so good, now I’m trying to tune MariaDB according to this guide: Performance - PhotoPrism the problem is (are) I can’t really find either the configuration file, or connect to mariaDB. I just need to change this: innodb-buffer-pool-size

My App is running on a dedicated DS but there I can only see settings.yml and hub.yml but none of them are what I’m looking for. SSH into photoprism works but I can’t connect to mariaDB using mysql -u it says the socket isn’t listening.

I’m sure I’m missing something obvious here.

Anohter question: I have installed the app using the app page on TrueNAS, if I need help for the app itself, should I post here, or on Photoprism forum?

Thx