mirror of
https://github.com/TeamPiped/Piped-Backend
synced 2025-11-06 15:19:55 +01:00
Hibernate environment variables double underscore to period
This commit is contained in:
parent
e36bbd0445
commit
946b3762a9
@ -167,8 +167,7 @@ public class Constants {
|
|||||||
}
|
}
|
||||||
System.getenv().forEach((key, value) -> {
|
System.getenv().forEach((key, value) -> {
|
||||||
if (key.startsWith("HIBERNATE"))
|
if (key.startsWith("HIBERNATE"))
|
||||||
String k = key.replace("_", ".").toLowerCase();
|
hibernateProperties.put(key.replace("__", ".").toLowerCase(), value);
|
||||||
hibernateProperties.put(k, 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");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user