Merge pull request #681 from TeamPiped/reqwest4j-bump

Update reqwest4j
This commit is contained in:
Kavin 2023-08-21 10:01:16 +01:00 committed by GitHub
commit 34f706387f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 2 deletions

View file

@ -41,7 +41,7 @@ dependencies {
implementation 'com.squareup.okhttp3:okhttp'
implementation 'com.squareup.okhttp3:okhttp-brotli'
implementation 'io.sentry:sentry:6.28.0'
implementation 'rocks.kavin:reqwest4j:1.0.9'
implementation 'rocks.kavin:reqwest4j:1.0.10'
implementation 'io.minio:minio:8.5.5'
}

View file

@ -8,6 +8,9 @@ PROXY_PART:https://pipedproxy-cdg.kavin.rocks
# Outgoing proxy to be used by reqwest4j - eg: socks5://127.0.0.1:1080
#REQWEST_PROXY: socks5://127.0.0.1:1080
# Optional proxy username and password
#REQWEST_PROXY_USER: username
#REQWEST_PROXY_PASS: password
# Captcha Parameters
CAPTCHA_BASE_URL:https://api.capmonster.cloud/

View file

@ -51,6 +51,8 @@ public class Constants {
public static final String PUBSUB_HUB_URL;
public static final String REQWEST_PROXY;
public static final String REQWEST_PROXY_USER;
public static final String REQWEST_PROXY_PASS;
public static final String FRONTEND_URL;
@ -131,7 +133,9 @@ public class Constants {
PUBSUB_URL = getProperty(prop, "PUBSUB_URL", PUBLIC_URL);
PUBSUB_HUB_URL = getProperty(prop, "PUBSUB_HUB_URL", "https://pubsubhubbub.appspot.com/subscribe");
REQWEST_PROXY = getProperty(prop, "REQWEST_PROXY");
ReqwestUtils.init(REQWEST_PROXY);
REQWEST_PROXY_USER = getProperty(prop, "REQWEST_PROXY_USER");
REQWEST_PROXY_PASS = getProperty(prop, "REQWEST_PROXY_PASS");
ReqwestUtils.init(REQWEST_PROXY, REQWEST_PROXY_USER, REQWEST_PROXY_PASS);
FRONTEND_URL = getProperty(prop, "FRONTEND_URL", "https://piped.video");
COMPROMISED_PASSWORD_CHECK = Boolean.parseBoolean(getProperty(prop, "COMPROMISED_PASSWORD_CHECK", "true"));
DISABLE_REGISTRATION = Boolean.parseBoolean(getProperty(prop, "DISABLE_REGISTRATION", "false"));