mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-08-14 23:51:41 +00:00
commit
34f706387f
3 changed files with 9 additions and 2 deletions
|
@ -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'
|
||||
}
|
||||
|
||||
|
|
|
@ -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/
|
||||
|
|
|
@ -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"));
|
||||
|
|
Loading…
Reference in a new issue