Téléverser les fichiers vers "conf/piped"

This commit is contained in:
Olivier 2023-10-13 19:37:57 +02:00
parent d9853ba926
commit c5027ba581
4 changed files with 115 additions and 0 deletions

25
conf/piped/api.conf Normal file
View File

@ -0,0 +1,25 @@
# 2023-10-13
proxy_cache_path /tmp/pipedapi_cache levels=1:2 keys_zone=pipedapi:4m max_size=2g inactive=60m use_temp_path=off;
server {
listen 80;
server_name pipedapi.domain.com;
set $backend "http://xxx.xxx.xxx.xxx:8301";
aio threads=default;
location ~* \.(jpg|jpeg|png|gif|ico)$ {
expires 30d;
add_header Cache-Control "public, no-transform";
}
location / {
aio threads=default;
proxy_cache pipedapi;
proxy_pass $backend;
proxy_http_version 1.1;
proxy_set_header Connection "keep-alive";
}
}

42
conf/piped/backend.conf Normal file
View File

@ -0,0 +1,42 @@
# 2023-10-13
# The port to Listen on.
PORT:8080
# The number of workers to use for the server
HTTP_WORKERS:8
# Proxy
PROXY_PART:https://pipedproxy.domain.com
# Outgoing HTTP Proxy - eg: 127.0.0.1: 8118
#HTTP_PROXY: 127.0.0.1: 8118
# Captcha Parameters
#CAPTCHA_BASE_URL: https: //api.capmonster.cloud/
#CAPTCHA_API_KEY: INSERT_HERE
# Public API URL
API_URL: https://pipedapi.domain.com
# Public Frontend URL
FRONTEND_URL: https://piped.domain.com
# Enable haveibeenpwned compromised password API
COMPROMISED_PASSWORD_CHECK:true
# Disable Registration
DISABLE_REGISTRATION:false
# Feed Retention Time in Days
FEED_RETENTION:30
# Sentry DSN
#SENTRY_DSN:""
# Hibernate properties
hibernate.connection.url:jdbc:postgresql://xxx.xxx.xxx.xxx:8300/piped
hibernate.connection.driver_class:org.postgresql.Driver
hibernate.dialect:org.hibernate.dialect.PostgreSQLDialect
hibernate.connection.username:root
hibernate.connection.password:xxx

22
conf/piped/frontend.conf Normal file
View File

@ -0,0 +1,22 @@
# 2023-10-13
server {
listen 80;
server_name piped.domain.com;
set $backend "http://xxx.xxx.xxx.xxx:8302";
aio threads=default;
location ~* \.(jpg|jpeg|png|gif|ico)$ {
expires 30d;
add_header Cache-Control "public, no-transform";
}
location / {
aio threads=default;
proxy_pass $backend;
proxy_http_version 1.1;
proxy_set_header Connection "keep-alive";
}
}

26
conf/piped/proxy.conf Normal file
View File

@ -0,0 +1,26 @@
# 2023-10-13
server {
listen 80;
server_name pipedproxy.domain.com;
aio threads=default;
location ~* \.(jpg|jpeg|png|gif|ico)$ {
expires 30d;
add_header Cache-Control "public, no-transform";
}
location ~ (/videoplayback|/api/v4/|/api/manifest/) {
aio threads=default;
include snippets/ytproxy.conf;
add_header Cache-Control private always;
}
location / {
aio threads=default;
include snippets/ytproxy.conf;
add_header Cache-Control "public, max-age=604800";
}
}