Add default config for debian, use systemd-creds by default

This commit is contained in:
2025-12-02 15:08:19 +09:00
parent 999d6cbc71
commit 59a88a4f21
6 changed files with 50 additions and 1 deletions
+23
View File
@@ -0,0 +1,23 @@
[mysql]
# Hostname and port of the database.
host = "localhost"
port = 3306
# The path to the unix socket of the database.
# If you uncomment this line, the host and port will be ignored
# socket_path = "/run/mysql/mysql.sock"
# The username and password for the database connection.
# The username and password can be omitted if you are connecting
# to the database using socket based authentication.
# However, the vendored systemd service is running as DynamicUser,
# so these need to be specified by default unless you override the
# systemd unit.
username = "muscl"
# This file gets created by systemd automatically, given you have set
# the password with `systemd-creds`.
password_file = "/run/credentials/muscl.service/muscl_mysql_password"
# Database connection timeout in seconds
timeout = 2
+2
View File
@@ -17,6 +17,8 @@ DynamicUser=yes
ConfigurationDirectory=muscl
LoadCredentialEncrypted=muscl_mysql_password
# This is required to read unix user/group details.
PrivateUsers=false