Compare commits

..

3 commits

3 changed files with 15 additions and 12 deletions

View file

@ -1,23 +1,23 @@
diff --git a/build.gradle b/build.gradle
index f68c2d6..9d568d2 100644
index 231b179..f6cd83b 100644
--- a/build.gradle
+++ b/build.gradle
@@ -40,7 +40,8 @@ dependencies {
implementation 'com.squareup.okhttp3:okhttp'
implementation 'com.squareup.okhttp3:okhttp-brotli'
implementation 'io.sentry:sentry:6.24.0'
- implementation 'rocks.kavin:reqwest4j:1.0.5'
+ //implementation 'rocks.kavin:reqwest4j:1.0.5'
implementation 'io.sentry:sentry:6.26.0'
- implementation 'rocks.kavin:reqwest4j:1.0.6'
+ //implementation 'rocks.kavin:reqwest4j:1.0.6'
+ implementation files('libs/reqwest4j.jar')
implementation 'io.minio:minio:8.5.4'
}
diff --git a/src/main/java/me/kavin/piped/Main.java b/src/main/java/me/kavin/piped/Main.java
index b38464a..42c8f96 100644
index a8647c0..3265111 100644
--- a/src/main/java/me/kavin/piped/Main.java
+++ b/src/main/java/me/kavin/piped/Main.java
@@ -36,7 +36,7 @@ public class Main {
YoutubeStreamExtractor.forceFetchIosClient(true);
@@ -39,7 +39,7 @@ public class Main {
ReqwestUtils.init(Constants.REQWEST_PROXY);
Sentry.init(options -> {
- options.setDsn(Constants.SENTRY_DSN);

View file

@ -1,19 +1,22 @@
#!/sbin/openrc-run
name=$RC_SVCNAME
command="/bin/ash"
command_args="/home/piped/start.sh"
command="/usr/lib/jvm/java-17-openjdk/bin/java"
command_args="-server -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+OptimizeStringConcat -XX:+UseStringDeduplication -XX:+UseCompressedOops -XX:+UseNUMA -XX:+UseG1GC -Xshare:on -jar ./piped.jar"
command_user="piped"
directory="/home/piped"
output_log="/var/log/$RC_SVCNAME/piped.log"
#output_log="/var/log/$RC_SVCNAME/piped.log"
error_log="/var/log/$RC_SVCNAME/error.log"
pidfile="/run/$RC_SVCNAME/$RC_SVCNAME.pid"
stopsig="SIGKILL"
command_background="yes"
depend() {
need net
use piped-proxy
use postgresql
}
start_pre() {

View file

@ -1,11 +1,11 @@
#!/bin/ash
# shellcheck shell=dash
JAVA_BIN="/usr/lib/jvm/default-jvm/bin/java"
JAVA_BIN="/usr/lib/jvm/java-17-openjdk/bin/java"
PIPED="/home/piped/piped.jar"
"$JAVA_BIN" -server \
-Xmx1G \
-Xmx2G \
-XX:+UnlockExperimentalVMOptions \
-XX:+OptimizeStringConcat \
-XX:+UseStringDeduplication \