finish environment file setup
This commit is contained in:
parent
2a16654cc7
commit
4d4c70763f
2 changed files with 63 additions and 1 deletions
|
@ -1 +1,48 @@
|
||||||
# TODO
|
# Database / Postgres service configuration
|
||||||
|
POSTGRES_USER={{peertube.environment.db_user}}
|
||||||
|
POSTGRES_PASSWORD={{peertube.environment.db_pass}}
|
||||||
|
POSTGRES_DB=peertube
|
||||||
|
|
||||||
|
# Database username and password used by PeerTube must match Postgres', so they are copied:
|
||||||
|
PEERTUBE_DB_USERNAME={{peertube.environment.db_user}}
|
||||||
|
PEERTUBE_DB_PASSWORD={{peertube.environment.db_pass}}
|
||||||
|
PEERTUBE_DB_SSL=false
|
||||||
|
|
||||||
|
# Default to Postgres service name "postgres" in docker-compose.yml
|
||||||
|
PEERTUBE_DB_HOSTNAME=postgres
|
||||||
|
|
||||||
|
# PeerTube server configuration
|
||||||
|
PEERTUBE_WEBSERVER_HOSTNAME={{peertube.environment.webserver.hostname}}
|
||||||
|
PEERTUBE_WEBSERVER_PORT={{peertube.environment.webserver.port}}
|
||||||
|
PEERTUBE_WEBSERVER_HTTPS={{peertube.environment.webserver.tls}}
|
||||||
|
PEERTUBE_TRUST_PROXY={{peertube.environment.webserver.trust_proxy}}
|
||||||
|
|
||||||
|
# Generate one using `openssl rand -hex 32`
|
||||||
|
PEERTUBE_SECRET={{peertube.environment.secret}}
|
||||||
|
|
||||||
|
# E-mail configuration
|
||||||
|
PEERTUBE_SMTP_USERNAME={{peertube.environment.smtp.user}}
|
||||||
|
PEERTUBE_SMTP_PASSWORD={{peertube.environment.smtp.pass}}
|
||||||
|
PEERTUBE_SMTP_HOSTNAME=smtp.gmail.com
|
||||||
|
PEERTUBE_SMTP_PORT=465
|
||||||
|
PEERTUBE_SMTP_FROM={{peertube.environment.smtp.email}}
|
||||||
|
PEERTUBE_SMTP_TLS=true
|
||||||
|
PEERTUBE_SMTP_DISABLE_STARTTLS=true
|
||||||
|
PEERTUBE_ADMIN_EMAIL={{peertube.environment.smtp.email}}
|
||||||
|
|
||||||
|
PEERTUBE_OBJECT_STORAGE_UPLOAD_ACL_PUBLIC="public-read"
|
||||||
|
PEERTUBE_OBJECT_STORAGE_UPLOAD_ACL_PRIVATE="private"
|
||||||
|
PEERTUBE_LOG_LEVEL=info
|
||||||
|
|
||||||
|
# /!\ Prefer to use the PeerTube admin interface to set the following configurations /!\
|
||||||
|
#PEERTUBE_SIGNUP_ENABLED=true
|
||||||
|
#PEERTUBE_TRANSCODING_ENABLED=true
|
||||||
|
#PEERTUBE_CONTACT_FORM_ENABLED=true
|
||||||
|
|
||||||
|
# Additional
|
||||||
|
# The database name used by PeerTube will be PEERTUBE_DB_NAME (only if set) *OR* 'peertube'+PEERTUBE_DB_SUFFIX
|
||||||
|
#PEERTUBE_DB_NAME=<MY POSTGRES DB NAME>
|
||||||
|
#PEERTUBE_DB_SUFFIX=_prod
|
||||||
|
|
||||||
|
# PEERTUBE_DB_PORT=5444
|
||||||
|
# PEERTUBE_REDIS_HOSTNAME=localhost
|
||||||
|
|
|
@ -5,6 +5,21 @@ peertube:
|
||||||
image_name: "docker.io/chocobozzz/peertube:v7.0.1-bookworm"
|
image_name: "docker.io/chocobozzz/peertube:v7.0.1-bookworm"
|
||||||
data_directory: "/peertube/data"
|
data_directory: "/peertube/data"
|
||||||
config_directory: "/peertube/config"
|
config_directory: "/peertube/config"
|
||||||
|
environment:
|
||||||
|
# replace with: openssl rand -hex 32
|
||||||
|
secret: "cff9ea5880b72f16d426059e0f3182ca478c580304967f476f242e583b06173f"
|
||||||
|
db_user: "batman"
|
||||||
|
db_pass: "batman"
|
||||||
|
webserver:
|
||||||
|
hostname: "videos.nuculabs.dev"
|
||||||
|
port: 443
|
||||||
|
tls: "true"
|
||||||
|
trust_proxy: '["127.0.0.1", "loopback", "192.168.0.0/24", "172.18.0.0/16", "10.0.0.0/16", "173.245.48.0/20", "103.21.244.0/22","103.22.200.0/22","103.31.4.0/22","141.101.64.0/18","108.162.192.0/18","190.93.240.0/20","188.114.96.0/20","197.234.240.0/22","198.41.128.0/17","162.158.0.0/15","104.16.0.0/13","104.24.0.0/14","172.64.0.0/13","131.0.72.0/22"]'
|
||||||
|
smtp:
|
||||||
|
user: ""
|
||||||
|
pass: ""
|
||||||
|
email: ""
|
||||||
|
hostname: "smtp.gmail.com"
|
||||||
postgres:
|
postgres:
|
||||||
postgres_directory: "/peertube/postgres"
|
postgres_directory: "/peertube/postgres"
|
||||||
image_name: "docker.io/postgres:13-alpine"
|
image_name: "docker.io/postgres:13-alpine"
|
||||||
|
|
Loading…
Add table
Reference in a new issue