Compare commits

...

4 Commits

Author SHA1 Message Date
renovate[bot]
20e432465e
fix(deps): update dependency io.sentry:sentry to v8.23.0 2025-10-01 21:03:10 +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 3 additions and 3 deletions

View File

@ -41,7 +41,7 @@ dependencies {
implementation(platform("com.squareup.okhttp3:okhttp-bom:5.1.0"))
implementation 'com.squareup.okhttp3:okhttp'
implementation 'com.squareup.okhttp3:okhttp-brotli'
implementation 'io.sentry:sentry:8.19.1'
implementation 'io.sentry:sentry:8.23.0'
implementation 'rocks.kavin:reqwest4j:1.0.14'
implementation 'io.minio:minio:8.5.17'
compileOnly 'org.projectlombok:lombok:1.18.38'

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");