Compare commits

..

4 Commits

Author SHA1 Message Date
renovate[bot]
e0a6c04b3d
chore(deps): update gradle to v9 2025-10-21 18:02:39 +00:00
Kavin
c5921f6b70
Merge pull request #817 from gmemstr/patch-1
Allow for valid hibernate environment variables
2025-09-28 01:50:37 +05:30
Gabriel Simmer
946b3762a9
Hibernate environment variables double underscore to period 2025-09-27 11:59:20 +01:00
Gabriel Simmer
e36bbd0445
Allow for valid hibernate environment variables
*nix systems can't have periods in their environment variable names, so we instead look for `HIBERNATE` prefixes, then lowercase and translate underscores to periods. This will allow for better compatibility with *nix systems when configuring likely sensitive hibernate values.
2025-09-27 11:58:52 +01:00

View File

@ -166,8 +166,8 @@ public class Constants {
S3_CLIENT = null; S3_CLIENT = null;
} }
System.getenv().forEach((key, value) -> { System.getenv().forEach((key, value) -> {
if (key.startsWith("hibernate")) if (key.startsWith("HIBERNATE"))
hibernateProperties.put(key, value); hibernateProperties.put(key.replace("__", ".").toLowerCase(), value);
}); });
MATRIX_SERVER = getProperty(prop, "MATRIX_SERVER", "https://matrix-client.matrix.org"); MATRIX_SERVER = getProperty(prop, "MATRIX_SERVER", "https://matrix-client.matrix.org");
MATRIX_TOKEN = getProperty(prop, "MATRIX_TOKEN"); MATRIX_TOKEN = getProperty(prop, "MATRIX_TOKEN");