add video quota
This commit is contained in:
parent
f5037a82dc
commit
c7a510a4c5
|
@ -15,6 +15,7 @@ ENV UID=991 GID=991 \
|
|||
BODY_SIZE=100M \
|
||||
CACHE_SIZE=100 \
|
||||
SIGNUP_LIMIT=10 \
|
||||
VIDEO_QUOTA=-1 \
|
||||
RESOLUTION_280=true \
|
||||
RESOLUTION_360=true \
|
||||
RESOLUTION_480=true \
|
||||
|
@ -55,4 +56,4 @@ WORKDIR /PeerTube/
|
|||
|
||||
VOLUME ["/PeerTube/certs", "/PeerTube/videos", "/PeerTube/logs", "/PeerTube/previews", "/PeerTube/thumbnails", "/PeerTube/torrents"]
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/startup"]
|
||||
ENTRYPOINT ["/usr/local/bin/startup"]
|
||||
|
|
|
@ -35,6 +35,11 @@ signup:
|
|||
enabled: <signup_enabled>
|
||||
limit: <signup_limit> # When the limit is reached, registrations are disabled. -1 == unlimited
|
||||
|
||||
user:
|
||||
# Default value of maximum video BYTES the user can upload (does not take into account transcoded files).
|
||||
# -1 == unlimited
|
||||
video_quota: <video_quota>
|
||||
|
||||
# If enabled, the video will be transcoded to mp4 (x264) with "faststart" flag
|
||||
# Uses a lot of CPU!
|
||||
transcoding:
|
||||
|
|
|
@ -16,6 +16,7 @@ sed -i -e 's|<https>|'${HTTPS}'|' \
|
|||
-e 's|<transcoding_threads>|'${TRANSCODING_THREADS}'|' \
|
||||
-e 's|<cache_size>|'${CACHE_SIZE}'|' \
|
||||
-e 's|<signup_limit>|'${SIGNUP_LIMIT}'|' \
|
||||
-e 's|<video_quota>|'${VIDEO_QUOTA}'|' \
|
||||
-e 's|<resolution_280>|'${RESOLUTION_280}'|' \
|
||||
-e 's|<resolution_360>|'${RESOLUTION_360}'|' \
|
||||
-e 's|<resolution_480>|'${RESOLUTION_480}'|' \
|
||||
|
|
Reference in New Issue