diff --git a/src/main/java/me/kavin/piped/consts/Constants.java b/src/main/java/me/kavin/piped/consts/Constants.java index 2a2624d..e785277 100644 --- a/src/main/java/me/kavin/piped/consts/Constants.java +++ b/src/main/java/me/kavin/piped/consts/Constants.java @@ -164,8 +164,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");