Allow arbitrary MySQL JDBC connection properties in config.yml

storage.mysql.properties is now a free-form map merged into the JDBC
URL as ?key=value&key=value..., letting hosts that require TLS set
things like sslMode: REQUIRED, or override the useSSL/autoReconnect
defaults, without needing a code change for every possible parameter.
This commit is contained in:
Michael Burgess
2026-08-09 12:44:33 -04:00
parent ca0747196e
commit 2d47962ea1
3 changed files with 32 additions and 2 deletions
@@ -17,6 +17,15 @@ storage:
username: stargate
password: ""
table-prefix: "stargate_"
# Extra JDBC connection parameters, appended to the URL as ?key=value&key=value.
# Defaults to useSSL: false and autoReconnect: true if you don't set them here -
# any key you list overrides that default (e.g. set useSSL: true and add sslMode
# to actually require TLS). Values are written into the URL as-is.
properties:
# useSSL: true
# sslMode: REQUIRED
# serverTimezone: UTC
# allowPublicKeyRetrieval: true
# Enables sending players to another backend server when they dial a gate whose
# server-id differs from this one. Requires the stargate-velocity or stargate-bungee