Use naming / eq check convention
This commit is contained in:
parent
82b33279d2
commit
6e4a3ce57d
@ -20,13 +20,13 @@ SECRET_DB_PASSWORD_VERSION=v1
|
|||||||
# If the proxy backend is enabled, nginx will proxy requests to
|
# If the proxy backend is enabled, nginx will proxy requests to
|
||||||
# NGINX_WEBSEED_PROXY_URI and cache video data locally
|
# NGINX_WEBSEED_PROXY_URI and cache video data locally
|
||||||
#
|
#
|
||||||
#NGINX_WEBSEED_PROXY_ENABLE=true
|
#NGINX_WEBSEED_PROXY_ENABLED=1
|
||||||
#NGINX_WEBSEED_PROXY_URI=https://some-bucket.s3.api-endpoint.net
|
#NGINX_WEBSEED_PROXY_URI=https://some-bucket.s3.api-endpoint.net
|
||||||
|
|
||||||
# If the CDN backend is enabled, nginx will respond to webseed requests
|
# If the CDN backend is enabled, nginx will respond to webseed requests
|
||||||
# with redirects to NGINX_WEBSEED_CDN_URI instead of sending video data
|
# with redirects to NGINX_WEBSEED_CDN_URI instead of sending video data
|
||||||
#
|
#
|
||||||
#NGINX_WEBSEED_CDN_ENABLE=true
|
#NGINX_WEBSEED_CDN_ENABLED=1
|
||||||
#NGINX_WEBSEED_CDN_URI=https://some-bucket.some-cdn.net
|
#NGINX_WEBSEED_CDN_URI=https://some-bucket.some-cdn.net
|
||||||
|
|
||||||
## E-mail settings # <= EDIT ALL THIS
|
## E-mail settings # <= EDIT ALL THIS
|
||||||
|
@ -9,9 +9,9 @@ services:
|
|||||||
- internal
|
- internal
|
||||||
environment:
|
environment:
|
||||||
- DOMAIN
|
- DOMAIN
|
||||||
- NGINX_WEBSEED_CDN_ENABLE
|
- NGINX_WEBSEED_CDN_ENABLED
|
||||||
- NGINX_WEBSEED_CDN_URI
|
- NGINX_WEBSEED_CDN_URI
|
||||||
- NGINX_WEBSEED_PROXY_ENABLE
|
- NGINX_WEBSEED_PROXY_ENABLED
|
||||||
- NGINX_WEBSEED_PROXY_URI
|
- NGINX_WEBSEED_PROXY_URI
|
||||||
volumes:
|
volumes:
|
||||||
- /etc/timezone:/etc/timezone:ro
|
- /etc/timezone:/etc/timezone:ro
|
||||||
|
@ -211,7 +211,7 @@ http {
|
|||||||
sendfile_max_chunk 1M; # prevent one fast connection from entirely occupying the worker process.
|
sendfile_max_chunk 1M; # prevent one fast connection from entirely occupying the worker process.
|
||||||
# should be > 800k.
|
# should be > 800k.
|
||||||
|
|
||||||
{{ if (env "NGINX_WEBSEED_PROXY_ENABLE") }}
|
{{ if eq (env "NGINX_WEBSEED_PROXY_ENABLED") "1" }}
|
||||||
proxy_connect_timeout 70;
|
proxy_connect_timeout 70;
|
||||||
proxy_read_timeout 1200;
|
proxy_read_timeout 1200;
|
||||||
proxy_send_timeout 1200;
|
proxy_send_timeout 1200;
|
||||||
@ -231,7 +231,7 @@ http {
|
|||||||
|
|
||||||
proxy_pass {{ env "NGINX_WEBSEED_PROXY_URI" }};
|
proxy_pass {{ env "NGINX_WEBSEED_PROXY_URI" }};
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ if (env "NGINX_WEBSEED_CDN_ENABLE") }}
|
{{ if eq (env "NGINX_WEBSEED_CDN_ENABLE") "1" }}
|
||||||
# Use this in tandem with fuse-mounting i.e. https://docs.joinpeertube.org/admin-remote-storage
|
# Use this in tandem with fuse-mounting i.e. https://docs.joinpeertube.org/admin-remote-storage
|
||||||
# to serve files directly from a public bucket without proxying.
|
# to serve files directly from a public bucket without proxying.
|
||||||
# Assumes you have buckets named after the storage subdirectories, i.e. 'videos', 'redundancy', etc.
|
# Assumes you have buckets named after the storage subdirectories, i.e. 'videos', 'redundancy', etc.
|
||||||
|
Loading…
Reference in New Issue
Block a user