mirror of
https://github.com/TeamPiped/Piped-Backend
synced 2025-11-06 15:19:55 +01:00
Merge pull request #817 from gmemstr/patch-1
Allow for valid hibernate environment variables
This commit is contained in:
commit
c5921f6b70
@ -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");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user