forked from nutomic/peertube.social
Make cache size variable
This commit is contained in:
parent
c2cce34964
commit
f52e912f53
3 changed files with 4 additions and 4 deletions
|
@ -1,8 +1,8 @@
|
||||||
[peertube]
|
[peertube]
|
||||||
# define the username and hostname that you use for ssh connection, and specify the domain
|
# define the username and hostname that you use for ssh connection, and specify the domain
|
||||||
myuser@example.com domain=example.com
|
myuser@example.com domain=example.com cache_size_gb=15
|
||||||
# you can also use a host that is defined in your ssh config
|
# you can also use a host that is defined in your ssh config
|
||||||
myserver domain=example.com
|
myserver domain=example.com cache_size_gb=15
|
||||||
|
|
||||||
[all:vars]
|
[all:vars]
|
||||||
ansible_connection=ssh
|
ansible_connection=ssh
|
||||||
|
|
|
@ -36,7 +36,7 @@ services:
|
||||||
restart: "always"
|
restart: "always"
|
||||||
|
|
||||||
peertube:
|
peertube:
|
||||||
image: chocobozzz/peertube:v1.3.0-rc.1-stretch
|
image: chocobozzz/peertube:v1.3.0-rc.2-stretch
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
volumes:
|
volumes:
|
||||||
|
|
|
@ -3,7 +3,7 @@ events {
|
||||||
}
|
}
|
||||||
|
|
||||||
http {
|
http {
|
||||||
proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=peertube_cache:10m max_size=15g use_temp_path=off;
|
proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=peertube_cache:10m max_size={{ cache_size_gb }}g use_temp_path=off;
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 9000;
|
listen 9000;
|
||||||
|
|
Loading…
Reference in a new issue