mirror of
https://github.com/TeamPiped/Piped-Docker.git
synced 2024-08-14 23:56:53 +00:00
Add Initial docker compose
* Initial draft of the docker-compose with configuration files * Update docker-compose.yml update path * Add configure-instance script. * Fix caddyfile and improvements. * Enable quic for Caddy. * Add missing newline. * Remove unnecessary depends_on. Co-authored-by: FireMasterK <20838718+FireMasterK@users.noreply.github.com>
This commit is contained in:
parent
c84060e2a4
commit
8d410df572
6 changed files with 161 additions and 0 deletions
48
template/Caddyfile
Normal file
48
template/Caddyfile
Normal file
|
@ -0,0 +1,48 @@
|
|||
{
|
||||
servers :443 {
|
||||
protocol {
|
||||
experimental_http3
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
FRONTEND_HOSTNAME {
|
||||
reverse_proxy pipedfrontend:80
|
||||
}
|
||||
|
||||
BACKEND_HOSTNAME {
|
||||
reverse_proxy varnish:80
|
||||
}
|
||||
|
||||
PROXY_HOSTNAME {
|
||||
|
||||
@ytproxy path /videoplayback* /api/v4/* /api/manifest/*
|
||||
|
||||
@optionscall {
|
||||
method OPTIONS
|
||||
}
|
||||
|
||||
header Access-Control-Allow-Origin *
|
||||
header Access-Control-Allow-Headers *
|
||||
|
||||
route {
|
||||
|
||||
header @ytproxy {
|
||||
Cache-Control private always
|
||||
}
|
||||
|
||||
header / {
|
||||
Cache-Control "public, max-age=604800"
|
||||
}
|
||||
|
||||
respond @optionscall 200
|
||||
|
||||
reverse_proxy unix//var/run/ytproxy/http-proxy.sock {
|
||||
header_up -CF-Connecting-IP
|
||||
header_up -X-Forwarded-For
|
||||
header_down -Access-Control-Allow-Origin
|
||||
header_down -etag
|
||||
header_down -alt-svc
|
||||
}
|
||||
}
|
||||
}
|
25
template/config.properties
Normal file
25
template/config.properties
Normal file
|
@ -0,0 +1,25 @@
|
|||
# The port to Listen on.
|
||||
PORT: 8080
|
||||
|
||||
# The number of workers to use for the server
|
||||
HTTP_WORKERS: 2
|
||||
|
||||
# Proxy
|
||||
PROXY_PART: https://PROXY_HOSTNAME
|
||||
|
||||
# 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://BACKEND_HOSTNAME
|
||||
|
||||
# Hibernate properties
|
||||
hibernate.connection.url: jdbc:postgresql://postgres:5432/piped
|
||||
hibernate.connection.driver_class: org.postgresql.Driver
|
||||
hibernate.dialect: org.hibernate.dialect.PostgreSQL10Dialect
|
||||
hibernate.connection.username: piped
|
||||
hibernate.connection.password: changeme
|
5
template/default.vcl
Normal file
5
template/default.vcl
Normal file
|
@ -0,0 +1,5 @@
|
|||
vcl 4.0;
|
||||
|
||||
backend default {
|
||||
.host = "piped:8080";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue