mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-12-13 22:00:29 +05:30
Update reqwest4j.
This commit is contained in:
parent
8e2564bc1d
commit
ec85beba5f
@ -41,7 +41,7 @@ dependencies {
|
|||||||
implementation 'com.squareup.okhttp3:okhttp'
|
implementation 'com.squareup.okhttp3:okhttp'
|
||||||
implementation 'com.squareup.okhttp3:okhttp-brotli'
|
implementation 'com.squareup.okhttp3:okhttp-brotli'
|
||||||
implementation 'io.sentry:sentry:6.28.0'
|
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'
|
implementation 'io.minio:minio:8.5.5'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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
|
# Outgoing proxy to be used by reqwest4j - eg: socks5://127.0.0.1:1080
|
||||||
#REQWEST_PROXY: 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 Parameters
|
||||||
CAPTCHA_BASE_URL:https://api.capmonster.cloud/
|
CAPTCHA_BASE_URL:https://api.capmonster.cloud/
|
||||||
|
@ -51,6 +51,8 @@ public class Constants {
|
|||||||
public static final String PUBSUB_HUB_URL;
|
public static final String PUBSUB_HUB_URL;
|
||||||
|
|
||||||
public static final String REQWEST_PROXY;
|
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;
|
public static final String FRONTEND_URL;
|
||||||
|
|
||||||
@ -131,7 +133,9 @@ public class Constants {
|
|||||||
PUBSUB_URL = getProperty(prop, "PUBSUB_URL", PUBLIC_URL);
|
PUBSUB_URL = getProperty(prop, "PUBSUB_URL", PUBLIC_URL);
|
||||||
PUBSUB_HUB_URL = getProperty(prop, "PUBSUB_HUB_URL", "https://pubsubhubbub.appspot.com/subscribe");
|
PUBSUB_HUB_URL = getProperty(prop, "PUBSUB_HUB_URL", "https://pubsubhubbub.appspot.com/subscribe");
|
||||||
REQWEST_PROXY = getProperty(prop, "REQWEST_PROXY");
|
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");
|
FRONTEND_URL = getProperty(prop, "FRONTEND_URL", "https://piped.video");
|
||||||
COMPROMISED_PASSWORD_CHECK = Boolean.parseBoolean(getProperty(prop, "COMPROMISED_PASSWORD_CHECK", "true"));
|
COMPROMISED_PASSWORD_CHECK = Boolean.parseBoolean(getProperty(prop, "COMPROMISED_PASSWORD_CHECK", "true"));
|
||||||
DISABLE_REGISTRATION = Boolean.parseBoolean(getProperty(prop, "DISABLE_REGISTRATION", "false"));
|
DISABLE_REGISTRATION = Boolean.parseBoolean(getProperty(prop, "DISABLE_REGISTRATION", "false"));
|
||||||
|
Loading…
Reference in New Issue
Block a user