Compare commits
3 commits
c4cfcecb00
...
1751409f53
Author | SHA1 | Date | |
---|---|---|---|
1751409f53 | |||
b682f0673d | |||
b04e279094 |
3 changed files with 15 additions and 12 deletions
|
@ -1,23 +1,23 @@
|
||||||
diff --git a/build.gradle b/build.gradle
|
diff --git a/build.gradle b/build.gradle
|
||||||
index f68c2d6..9d568d2 100644
|
index 231b179..f6cd83b 100644
|
||||||
--- a/build.gradle
|
--- a/build.gradle
|
||||||
+++ b/build.gradle
|
+++ b/build.gradle
|
||||||
@@ -40,7 +40,8 @@ dependencies {
|
@@ -40,7 +40,8 @@ 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.24.0'
|
implementation 'io.sentry:sentry:6.26.0'
|
||||||
- implementation 'rocks.kavin:reqwest4j:1.0.5'
|
- implementation 'rocks.kavin:reqwest4j:1.0.6'
|
||||||
+ //implementation 'rocks.kavin:reqwest4j:1.0.5'
|
+ //implementation 'rocks.kavin:reqwest4j:1.0.6'
|
||||||
+ implementation files('libs/reqwest4j.jar')
|
+ implementation files('libs/reqwest4j.jar')
|
||||||
implementation 'io.minio:minio:8.5.4'
|
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
|
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
|
--- a/src/main/java/me/kavin/piped/Main.java
|
||||||
+++ b/src/main/java/me/kavin/piped/Main.java
|
+++ b/src/main/java/me/kavin/piped/Main.java
|
||||||
@@ -36,7 +36,7 @@ public class Main {
|
@@ -39,7 +39,7 @@ public class Main {
|
||||||
YoutubeStreamExtractor.forceFetchIosClient(true);
|
ReqwestUtils.init(Constants.REQWEST_PROXY);
|
||||||
|
|
||||||
Sentry.init(options -> {
|
Sentry.init(options -> {
|
||||||
- options.setDsn(Constants.SENTRY_DSN);
|
- options.setDsn(Constants.SENTRY_DSN);
|
||||||
|
|
|
@ -1,19 +1,22 @@
|
||||||
#!/sbin/openrc-run
|
#!/sbin/openrc-run
|
||||||
|
|
||||||
name=$RC_SVCNAME
|
name=$RC_SVCNAME
|
||||||
command="/bin/ash"
|
command="/usr/lib/jvm/java-17-openjdk/bin/java"
|
||||||
command_args="/home/piped/start.sh"
|
command_args="-server -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+OptimizeStringConcat -XX:+UseStringDeduplication -XX:+UseCompressedOops -XX:+UseNUMA -XX:+UseG1GC -Xshare:on -jar ./piped.jar"
|
||||||
command_user="piped"
|
command_user="piped"
|
||||||
directory="/home/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"
|
error_log="/var/log/$RC_SVCNAME/error.log"
|
||||||
|
|
||||||
pidfile="/run/$RC_SVCNAME/$RC_SVCNAME.pid"
|
pidfile="/run/$RC_SVCNAME/$RC_SVCNAME.pid"
|
||||||
|
stopsig="SIGKILL"
|
||||||
command_background="yes"
|
command_background="yes"
|
||||||
|
|
||||||
depend() {
|
depend() {
|
||||||
need net
|
need net
|
||||||
|
use piped-proxy
|
||||||
|
use postgresql
|
||||||
}
|
}
|
||||||
|
|
||||||
start_pre() {
|
start_pre() {
|
||||||
|
|
4
start.sh
4
start.sh
|
@ -1,11 +1,11 @@
|
||||||
#!/bin/ash
|
#!/bin/ash
|
||||||
# shellcheck shell=dash
|
# 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"
|
PIPED="/home/piped/piped.jar"
|
||||||
|
|
||||||
"$JAVA_BIN" -server \
|
"$JAVA_BIN" -server \
|
||||||
-Xmx1G \
|
-Xmx2G \
|
||||||
-XX:+UnlockExperimentalVMOptions \
|
-XX:+UnlockExperimentalVMOptions \
|
||||||
-XX:+OptimizeStringConcat \
|
-XX:+OptimizeStringConcat \
|
||||||
-XX:+UseStringDeduplication \
|
-XX:+UseStringDeduplication \
|
||||||
|
|
Loading…
Add table
Reference in a new issue