Compare commits

...

4 Commits

Author SHA1 Message Date
renovate[bot]
dd4db1e5f4
fix(deps): update dependency org.projectlombok:lombok to v1.18.42 2025-10-09 09:48:03 +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
2 changed files with 4 additions and 4 deletions

View File

@ -44,8 +44,8 @@ dependencies {
implementation 'io.sentry:sentry:8.19.1'
implementation 'rocks.kavin:reqwest4j:1.0.14'
implementation 'io.minio:minio:8.5.17'
compileOnly 'org.projectlombok:lombok:1.18.38'
annotationProcessor 'org.projectlombok:lombok:1.18.38'
compileOnly 'org.projectlombok:lombok:1.18.42'
annotationProcessor 'org.projectlombok:lombok:1.18.42'
}
shadowJar {

View File

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