server/config: revamp

- Adds options `socket_path` and `password_file`
This commit is contained in:
2024-08-19 16:47:34 +02:00
parent 48240489a7
commit ed12a3153b
3 changed files with 92 additions and 31 deletions

View File

@@ -1,8 +1,22 @@
# This should go to `/etc/mysqladm/config.toml`
[server]
# Note that this gets ignored if you are using socket activation.
socket_path = "/var/run/mysqladm/mysqladm.sock"
[mysql]
# if you use a socket, the host and port will be ignored
# socket_path = "/var/run/mysql/mysql.sock"
host = "localhost"
port = 3306
# The username and password can be omitted if you are using
# socket based authentication. However, the vendored systemd
# service is running as DynamicUser, so by default you need
# to at least specify the username.
username = "root"
password = "secret"
timeout = 2 # seconds