add files/piped
This commit is contained in:
parent
93e11c515f
commit
5f36935814
2 changed files with 99 additions and 0 deletions
81
files/piped/config.properties
Normal file
81
files/piped/config.properties
Normal file
|
@ -0,0 +1,81 @@
|
||||||
|
# The port to Listen on.
|
||||||
|
PORT:8080
|
||||||
|
# The number of workers to use for the server
|
||||||
|
HTTP_WORKERS:2
|
||||||
|
|
||||||
|
# Proxy
|
||||||
|
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
|
||||||
|
|
||||||
|
# Captcha Parameters
|
||||||
|
CAPTCHA_BASE_URL:https://api.capmonster.cloud/
|
||||||
|
CAPTCHA_API_KEY:INSERT_HERE
|
||||||
|
|
||||||
|
# Public API URL
|
||||||
|
API_URL:https://pipedapi.kavin.rocks
|
||||||
|
|
||||||
|
# Public Frontend URL
|
||||||
|
FRONTEND_URL:https://piped.video
|
||||||
|
|
||||||
|
# Enable haveibeenpwned compromised password API
|
||||||
|
COMPROMISED_PASSWORD_CHECK:true
|
||||||
|
|
||||||
|
# Disable Registration
|
||||||
|
DISABLE_REGISTRATION:false
|
||||||
|
|
||||||
|
# Feed Retention Time in Days
|
||||||
|
FEED_RETENTION:30
|
||||||
|
|
||||||
|
# Disable CPU expensive timers (for nodes with low CPU, at least one node should have this disabled)
|
||||||
|
DISABLE_TIMERS:false
|
||||||
|
|
||||||
|
# RYD Proxy URL (see https://github.com/TeamPiped/RYD-Proxy)
|
||||||
|
RYD_PROXY_URL:https://ryd-proxy.kavin.rocks
|
||||||
|
|
||||||
|
# SponsorBlock Servers(s)
|
||||||
|
# Comma separated list of SponsorBlock Servers to use
|
||||||
|
SPONSORBLOCK_SERVERS:https://sponsor.ajay.app,https://sponsorblock.kavin.rocks
|
||||||
|
|
||||||
|
# Disable the usage of RYD
|
||||||
|
DISABLE_RYD:false
|
||||||
|
|
||||||
|
# Disable API server (node just runs timers if enabled)
|
||||||
|
DISABLE_SERVER:false
|
||||||
|
|
||||||
|
# Disable the inclusion of LBRY streams
|
||||||
|
DISABLE_LBRY:false
|
||||||
|
|
||||||
|
# How long should unauthenticated subscriptions last for
|
||||||
|
SUBSCRIPTIONS_EXPIRY:30
|
||||||
|
|
||||||
|
# Sentry DSN
|
||||||
|
# Use Sentry to log errors and trace performance
|
||||||
|
#SENTRY_DSN:INSERT_HERE
|
||||||
|
|
||||||
|
# Matrix Client Server URL
|
||||||
|
MATRIX_SERVER:https://matrix-client.matrix.org
|
||||||
|
# Matrix Access Token
|
||||||
|
# If not present, will work in anon mode
|
||||||
|
#MATRIX_TOKEN:INSERT_HERE
|
||||||
|
|
||||||
|
# Geo Restriction Checker for federated bypassing of Geo Restrictions
|
||||||
|
#GEO_RESTRICTION_CHECKER_URL:INSERT_HERE
|
||||||
|
|
||||||
|
# S3 Configuration Data (compatible with any provider that offers an S3 compatible API)
|
||||||
|
#S3_ENDPOINT:INSERT_HERE
|
||||||
|
#S3_ACCESS_KEY:INSERT_HERE
|
||||||
|
#S3_SECRET_KEY:INSERT_HERE
|
||||||
|
#S3_BUCKET:INSERT_HERE
|
||||||
|
|
||||||
|
# Hibernate properties
|
||||||
|
hibernate.connection.url:jdbc:postgresql://localhost:5432/{{ env_dict.piped_db_name }}
|
||||||
|
hibernate.connection.driver_class:org.postgresql.Driver
|
||||||
|
hibernate.dialect:org.hibernate.dialect.PostgreSQLDialect
|
||||||
|
hibernate.connection.username:{{ env_dict.piped_db_user }}
|
||||||
|
hibernate.connection.password:{{ env_dict.piped_db_password }}
|
||||||
|
|
||||||
|
# Frontend configuration
|
||||||
|
#frontend.statusPageUrl:https://kavin.rocks
|
||||||
|
#frontend.donationUrl:https://kavin.rocks
|
18
files/piped/piped.service.j2
Normal file
18
files/piped/piped.service.j2
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
{% import './templates/systemd.j2' as systemd %}
|
||||||
|
|
||||||
|
{{ systemd.service() }}
|
||||||
|
|
||||||
|
[Unit]
|
||||||
|
Description=piped backend
|
||||||
|
After=network-online.target postgresql.service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
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 }}
|
||||||
|
|
||||||
|
{{ systemd.service_security() }}
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
Reference in a new issue