From bbc84a222db02045c187bc6000ffe75784e05594 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Sun, 20 Nov 2022 21:42:41 +0100 Subject: [PATCH 1/3] add proxyUrl to config --- src/main/java/me/kavin/piped/consts/Constants.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/me/kavin/piped/consts/Constants.java b/src/main/java/me/kavin/piped/consts/Constants.java index 4ee6f68..70f0f61 100644 --- a/src/main/java/me/kavin/piped/consts/Constants.java +++ b/src/main/java/me/kavin/piped/consts/Constants.java @@ -136,6 +136,8 @@ public class Constants { frontendProperties.put(StringUtils.substringAfter(key, "frontend."), value); }); + frontendProperties.put("proxyUrl", PROXY_PART); + // transform hibernate properties for legacy configurations hibernateProperties.replace("hibernate.dialect", "org.hibernate.dialect.PostgreSQL10Dialect", From 0ea7aca20ce38cf787504d553b82c798b8cab39b Mon Sep 17 00:00:00 2001 From: Kavin <20838718+FireMasterK@users.noreply.github.com> Date: Sun, 20 Nov 2022 20:52:47 +0000 Subject: [PATCH 2/3] Remove newline. --- src/main/java/me/kavin/piped/consts/Constants.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main/java/me/kavin/piped/consts/Constants.java b/src/main/java/me/kavin/piped/consts/Constants.java index 70f0f61..c26a418 100644 --- a/src/main/java/me/kavin/piped/consts/Constants.java +++ b/src/main/java/me/kavin/piped/consts/Constants.java @@ -135,7 +135,6 @@ public class Constants { else if (key.startsWith("frontend.")) frontendProperties.put(StringUtils.substringAfter(key, "frontend."), value); }); - frontendProperties.put("proxyUrl", PROXY_PART); // transform hibernate properties for legacy configurations From a76a924c6aee44ba8320fabe9b88d69b94a731b9 Mon Sep 17 00:00:00 2001 From: Kavin <20838718+FireMasterK@users.noreply.github.com> Date: Sun, 20 Nov 2022 20:53:53 +0000 Subject: [PATCH 3/3] Only provide image proxy configuration. --- src/main/java/me/kavin/piped/consts/Constants.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/kavin/piped/consts/Constants.java b/src/main/java/me/kavin/piped/consts/Constants.java index c26a418..e9d4e0b 100644 --- a/src/main/java/me/kavin/piped/consts/Constants.java +++ b/src/main/java/me/kavin/piped/consts/Constants.java @@ -135,7 +135,7 @@ public class Constants { else if (key.startsWith("frontend.")) frontendProperties.put(StringUtils.substringAfter(key, "frontend."), value); }); - frontendProperties.put("proxyUrl", PROXY_PART); + frontendProperties.put("imageProxyUrl", IMAGE_PROXY_PART); // transform hibernate properties for legacy configurations hibernateProperties.replace("hibernate.dialect",