diff --git a/files/piped/config.properties b/files/piped/config.properties index 88d71b1..37aadb6 100644 --- a/files/piped/config.properties +++ b/files/piped/config.properties @@ -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 +{% if env_dict.piped_proxy %} +REQWEST_PROXY: socks5://{{ env_dict.piped_proxy }} +{% endif %} # Captcha Parameters CAPTCHA_BASE_URL:https://api.capmonster.cloud/ @@ -39,13 +42,13 @@ RYD_PROXY_URL:https://ryd-proxy.kavin.rocks SPONSORBLOCK_SERVERS:https://sponsor.ajay.app,https://sponsorblock.kavin.rocks # Disable the usage of RYD -DISABLE_RYD:false +DISABLE_RYD:true # Disable API server (node just runs timers if enabled) DISABLE_SERVER:false # Disable the inclusion of LBRY streams -DISABLE_LBRY:false +DISABLE_LBRY:true # How long should unauthenticated subscriptions last for SUBSCRIPTIONS_EXPIRY:30 diff --git a/files/piped/piped.service.j2 b/files/piped/piped.service.j2 index 4686a66..feaed43 100644 --- a/files/piped/piped.service.j2 +++ b/files/piped/piped.service.j2 @@ -8,6 +8,7 @@ After=network-online.target postgresql.service [Service] Type=simple +Restart=on-failure ExecStart=/usr/bin/java -server -Xmx1G -XX:+UnlockExperimentalVMOptions -XX:+HeapDumpOnOutOfMemoryError -XX:+OptimizeStringConcat -XX:+UseStringDeduplication -XX:+UseCompressedOops -XX:+UseNUMA -XX:+UseG1GC -jar {{ env_dict.remote_main_home_path }}/piped-1.0-all.jar WorkingDirectory={{ env_dict.remote_main_home_path }} User={{ env_dict.user }} diff --git a/tasks/piped.py b/tasks/piped.py index 441e072..8925aa6 100644 --- a/tasks/piped.py +++ b/tasks/piped.py @@ -35,7 +35,7 @@ def install_lxc_container(): lxc_shell(ct_name, "env") -@deploy("install piped backend") +@deploy("install piped backend", data_defaults={"piped_proxy": None}) def install(): install_postgresql() dnf.packages(