Compare commits

...

4 Commits

Author SHA1 Message Date
renovate[bot]
b3281385ce
fix(deps): update jackson 2025-10-09 09:48:25 +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 5 additions and 5 deletions

View File

@ -18,9 +18,9 @@ dependencies {
implementation 'org.bouncycastle:bcprov-jdk18on:1.81'
implementation 'com.github.FireMasterK:NewPipeExtractor:92809cedefd89ce68bc4de8763e9d5f2760f5899'
implementation 'com.github.FireMasterK:nanojson:a507525e549a836c3a8b6ab7090dca38e92942ef'
implementation 'com.fasterxml.jackson.core:jackson-core:2.19.2'
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.19.2'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.19.2'
implementation 'com.fasterxml.jackson.core:jackson-core:2.20.0'
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.20'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.20.0'
implementation 'com.rometools:rome:2.1.0'
implementation 'com.rometools:rome-modules:2.1.0'
implementation 'org.jsoup:jsoup:1.21.2'

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